diff --git a/.config/nvim/lua/plugins/bigfile.lua b/.config/nvim/lua/plugins/bigfile.lua new file mode 100644 index 00000000..222d22e9 --- /dev/null +++ b/.config/nvim/lua/plugins/bigfile.lua @@ -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", + }, + }, +} diff --git a/.config/nvim/lua/plugins/lsp-timeout.lua b/.config/nvim/lua/plugins/lsp-timeout.lua new file mode 100644 index 00000000..6b5983f0 --- /dev/null +++ b/.config/nvim/lua/plugins/lsp-timeout.lua @@ -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, + }, +}