lsp-timeout: initial config
This commit is contained in:
parent
12a92910c1
commit
3121819120
3 changed files with 12 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -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
|
||||
|
|
|
|||
8
init.lua
8
init.lua
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
|||
1
pack/general/opt/lsp-timeout.nvim
Submodule
1
pack/general/opt/lsp-timeout.nvim
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 1bd9fd410139c00569e652ce8ab7d6ea6388fcc0
|
||||
Loading…
Add table
Reference in a new issue