starter/lua/plugins/typescript.lua
Thomas Smallwood 68f6c8b1ca
copilot configs
2026-01-21 22:15:40 +01:00

40 lines
856 B
Lua

return {
-- disable vtsls
{
"neovim/nvim-lspconfig",
opts = {
servers = {
vtsls = false,
tsserver = false,
},
inlay_hints = {
enabled = false,
},
},
},
-- enable typescript-tools
{
"pmizio/typescript-tools.nvim",
ft = {
"typescript",
"typescriptreact",
"javascript",
"javascriptreact",
},
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",
},
},
},
},
}