1
0
Fork 0

lsp-timeout: initial config

This commit is contained in:
Felipe 2023-10-16 15:42:42 -03:00
parent 12a92910c1
commit 3121819120
Signed by: pitbuster
SSH key fingerprint: SHA256:OM3HeVSA96adfy2Gi8OhZkQBY67P88LoJUwkeVoTArQ
3 changed files with 12 additions and 0 deletions

3
.gitmodules vendored
View file

@ -128,3 +128,6 @@
[submodule "pack/general/opt/lsp_lines.nvim"]
path = pack/general/opt/lsp_lines.nvim
url = https://git.sr.ht/~whynothugo/lsp_lines.nvim
[submodule "pack/general/opt/lsp-timeout.nvim"]
path = pack/general/opt/lsp-timeout.nvim
url = https://github.com/hinell/lsp-timeout.nvim

View file

@ -288,6 +288,7 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
vim.g.lsp_loaded = true
vim.cmd("packadd nvim-lspconfig")
vim.cmd("packadd lsp_lines.nvim")
vim.cmd("packadd lsp-timeout.nvim")
local lsp = require("lspconfig")
-- Use an on_attach function to only map the following keys
@ -367,6 +368,13 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
vim.diagnostic.config({
virtual_text = false,
})
---- lsp-timeout
vim.g["lsp-timeout-config"] = {
stopTimeout = 1000 * 60 * 5, -- ms, timeout before stopping all LSP servers
startTimeout = 1000 * 2, -- ms, timeout before restart
silent = false -- true to suppress notifications
}
end,
})

@ -0,0 +1 @@
Subproject commit 1bd9fd410139c00569e652ce8ab7d6ea6388fcc0