feat(nvim): bigfile and lsp-timeout plugins added

helping for those beffy files
This commit is contained in:
Sergio Laín 2023-10-16 13:25:54 +02:00
parent 2cce8ffdc8
commit 980701768c
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 28 additions and 0 deletions

View 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",
},
},
}

View 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,
},
}