mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
tsserver safety buffer exits and settings
This commit is contained in:
parent
6f39b5d1d3
commit
c1254fd7a6
2 changed files with 21 additions and 1 deletions
|
|
@ -9,3 +9,10 @@ vim.o.scrolloff = 10
|
||||||
|
|
||||||
-- Semantic highlighting
|
-- Semantic highlighting
|
||||||
vim.g.lazyvim_semantic_highlighting = false
|
vim.g.lazyvim_semantic_highlighting = false
|
||||||
|
|
||||||
|
-- Kill any orphaned tsserver processes when Neovim exits
|
||||||
|
vim.api.nvim_create_autocmd("ExitPre", {
|
||||||
|
callback = function()
|
||||||
|
vim.fn.system("pkill -f 'tsserver.js'")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,19 @@ return {
|
||||||
"javascript",
|
"javascript",
|
||||||
"javascriptreact",
|
"javascriptreact",
|
||||||
},
|
},
|
||||||
opts = {},
|
opts = {
|
||||||
|
settings = {
|
||||||
|
tsserver_file_preferences = {
|
||||||
|
disableSuggestions = false,
|
||||||
|
includeInlayParameterNameHints = "all",
|
||||||
|
includeCompletionsForModuleExports = true,
|
||||||
|
},
|
||||||
|
tsserver_enable_partial_semantic_mode = true,
|
||||||
|
tsserver_watch_options = {
|
||||||
|
watchFile = "useFsEvents", -- recommended for remote/container
|
||||||
|
watchDirectory = "useFsEvents",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue