Fixes
This commit is contained in:
parent
6a60d395c2
commit
265cc9f642
@ -50,6 +50,7 @@
|
||||
"telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" },
|
||||
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
|
||||
"typescript-tools.nvim": { "branch": "master", "commit": "35e397ce467bedbbbb5bfcd0aa79727b59a08d4a" },
|
||||
"vimtex": { "branch": "master", "commit": "3f0bdcfbe8167c081cd83153910c871b681c1d8f" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "6cebd86917df559a88de0f806b2989799c6e6423" },
|
||||
"zen-mode.nvim": { "branch": "main", "commit": "863f150ca321b3dd8aa1a2b69b5f411a220e144f" }
|
||||
|
@ -130,24 +130,26 @@ return {
|
||||
on_attach = on_attach,
|
||||
})
|
||||
|
||||
lspconfig.ts_ls.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
})
|
||||
-- lspconfig.ts_ls.setup({
|
||||
-- capabilities = capabilities,
|
||||
-- on_attach = on_attach,
|
||||
-- })
|
||||
|
||||
-- local mason_registry = require('mason-registry')
|
||||
-- local vue_language_server_path = mason_registry.get_package('vue-language-server'):get_install_path() .. '/node_modules/@vue/language-server'
|
||||
--
|
||||
-- lspconfig.volar.setup({
|
||||
-- capabilities = capabilities,
|
||||
-- on_attach = on_attach,
|
||||
-- cmd = { "vue-language-server", "--stdio" },
|
||||
-- -- cmd = { "vue-language-server", "--stdio" },
|
||||
-- filetypes = { "vue" },
|
||||
-- settings = {
|
||||
-- typescript = {
|
||||
-- tsdk = '/usr/lib/node_modules/typescript/lib'
|
||||
-- }
|
||||
-- }
|
||||
-- -- settings = {
|
||||
-- -- typescript = {
|
||||
-- -- tsdk = '/usr/lib/node_modules/typescript/lib'
|
||||
-- -- }
|
||||
-- -- }
|
||||
-- })
|
||||
|
||||
-- done in ftplugin
|
||||
lspconfig.jdtls.setup({
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
|
30
nvim/lua/plugins/typescript-tools.lua
Executable file
30
nvim/lua/plugins/typescript-tools.lua
Executable file
@ -0,0 +1,30 @@
|
||||
return {
|
||||
'pmizio/typescript-tools.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim', 'neovim/nvim-lspconfig' },
|
||||
opts = {},
|
||||
ft = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact', 'vue' },
|
||||
config = function()
|
||||
require('typescript-tools').setup {
|
||||
on_attach = function(client, bufnr)
|
||||
client.server_capabilities.documentFormattingProvider = false
|
||||
client.server_capabilities.documentRangeFormattingProvider = false
|
||||
end,
|
||||
filetypes = {
|
||||
'javascript',
|
||||
'javascriptreact',
|
||||
'typescript',
|
||||
'typescriptreact',
|
||||
'vue',
|
||||
},
|
||||
settings = {
|
||||
tsserver_plugins = {
|
||||
'@vue/typescript-plugin',
|
||||
},
|
||||
jsx_close_tag = {
|
||||
enable = true,
|
||||
filetypes = { 'javascriptreact', 'typescriptreact' },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user