nvim: packer -> lazy
This commit is contained in:
@ -1,6 +1,23 @@
|
||||
vim.g.mapleader = " "
|
||||
vim.g.localleader = "\\"
|
||||
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
|
||||
require('plugins')
|
||||
require('vars')
|
||||
require('opts')
|
||||
@ -30,13 +47,7 @@ lspconfig.eslint.setup {}
|
||||
lspconfig.gopls.setup {}
|
||||
lspconfig.wgsl_analyzer.setup {}
|
||||
|
||||
require("auto-save").setup({
|
||||
enabled = false
|
||||
})
|
||||
|
||||
-- FIXME
|
||||
--require("todo-comments").setup()
|
||||
|
||||
require("todo-comments").setup()
|
||||
|
||||
rust_tools.setup({
|
||||
server = {
|
||||
|
||||
Reference in New Issue
Block a user