✨ feat(nvim): bigfile and lsp-timeout plugins added
helping for those beffy files
This commit is contained in:
parent
2cce8ffdc8
commit
980701768c
2 changed files with 28 additions and 0 deletions
16
.config/nvim/lua/plugins/bigfile.lua
Normal file
16
.config/nvim/lua/plugins/bigfile.lua
Normal file
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
"LunarVim/bigfile.nvim",
|
||||
event = "BufRead",
|
||||
opts = {
|
||||
filesize = 1, -- size of the file in MiB, the plugin round file sizes to the closest MiB
|
||||
pattern = { "*" }, -- autocmd pattern or function see <### Overriding the detection of big files>
|
||||
features = { -- features to disable
|
||||
"indent_blankline",
|
||||
"illuminate",
|
||||
-- "lsp",
|
||||
"syntax",
|
||||
"vimopts",
|
||||
"matchparen",
|
||||
},
|
||||
},
|
||||
}
|
12
.config/nvim/lua/plugins/lsp-timeout.lua
Normal file
12
.config/nvim/lua/plugins/lsp-timeout.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
{
|
||||
"hinell/lsp-timeout.nvim",
|
||||
event = "BufRead",
|
||||
dependencies = { "neovim/nvim-lspconfig" },
|
||||
init = function()
|
||||
vim.g["lsp-timeout-config"] = {
|
||||
startTimeout = 1000 * 1, -- ms before restart
|
||||
}
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue