nvim: packer -> lazy

This commit is contained in:
2024-07-05 16:27:41 +02:00
parent 8218831b06
commit 3a42637493
8 changed files with 83 additions and 468 deletions

View File

@ -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 = {