mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
chore(nvim): Neovim config cleanups
- Use newer installation for Lazy.nvim - Treesitter: ensure_install sql, bash, jsonc, python, dockerfile plugins - Completion: Use <ctrl+y> to accept. <enter> to accept was interfering with completions that were suggested at end of the line and you don't want to accept but just want to go to the next line - Snacks: disble the abhorrent *smooth* scrolling - Whichkey: More time before pop-up shows (450ms)
This commit is contained in:
@@ -22,7 +22,13 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
lazypath,
|
||||
})
|
||||
if vim.v.shell_error ~= 0 then
|
||||
error("Error cloning lazy.nvim:\n" .. out)
|
||||
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
|
||||
|
||||
@@ -32,27 +38,11 @@ vim.opt.rtp:prepend(lazypath)
|
||||
-- You can also configure plugins after the setup call,
|
||||
-- as they will be available in your neovim runtime.
|
||||
require("lazy").setup({
|
||||
{ import = "plugins" },
|
||||
}, {
|
||||
lockfile = vim.fn.stdpath("data") .. "/lazy/lazy-lock.json",
|
||||
change_detection = {
|
||||
notify = false,
|
||||
},
|
||||
build = {
|
||||
warn_on_override = true,
|
||||
},
|
||||
performance = {
|
||||
rtp = {
|
||||
-- Disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"matchit",
|
||||
-- "matchparen",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
spec = { { import = "plugins" } },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user