34 lines
920 B
Lua
34 lines
920 B
Lua
--- @type LazyPluginSpec
|
|
return {
|
|
"pmizio/typescript-tools.nvim",
|
|
dependencies = {
|
|
"nvim-lua/plenary.nvim",
|
|
"neovim/nvim-lspconfig",
|
|
"hrsh7th/cmp-nvim-lsp",
|
|
},
|
|
ft = {
|
|
"javascript",
|
|
"javascriptreact",
|
|
"typescript",
|
|
"typescriptreact",
|
|
},
|
|
config = function()
|
|
local typescript_tools = require("typescript-tools")
|
|
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
|
|
|
local on_attach = require("taken.core.on_attach")
|
|
local capabilities = cmp_nvim_lsp.default_capabilities()
|
|
|
|
typescript_tools.setup({
|
|
capabilities = capabilities,
|
|
on_attach = on_attach,
|
|
settings = {
|
|
tsserver_file_preferences = {
|
|
includeCompletionsForModuleExports = true,
|
|
quotePreference = "auto",
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|