1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

new nvim config

This commit is contained in:
Henrik Hautakoski 2024-08-25 16:49:58 +02:00
parent f087422bbf
commit 7d14948480
66 changed files with 1771 additions and 1719 deletions

66
nvim/lua/user/lazy.lua Normal file
View file

@ -0,0 +1,66 @@
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("lazy").setup({
spec = {
{ import = "user.plugins.core" },
{ import = "user.plugins.ui" },
{ import = "user.plugins.editor" },
{ import = "user.plugins.lsp" },
-- Language specific
{ import = "user.plugins.lang.lua" },
{ import = "user.plugins.lang.bash" },
{ import = "user.plugins.lang.clangd" },
{ import = "user.plugins.lang.go" },
{ import = "user.plugins.lang.rust" },
{ import = "user.plugins.lang.php" },
{ import = "user.plugins.lang.css" },
{ import = "user.plugins.lang.typescript" },
{ import = "user.plugins.lang.vue" },
},
pkg = {
sources = {
"lazy",
-- "rockspec",
-- "packspec",
},
},
dev = {
path = "~/code/nvim_plugins",
},
checker = {
enabled = false
},
change_detection = {
enabled = false,
notify = false
},
performance = {
rtp = {
disabled_plugins = {
"gzip",
"matchit",
"netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
}
}
})