Skip to content

Commit 6029ee5

Browse files
committed
some ts_server updates
1 parent 578f8c5 commit 6029ee5

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

init.lua

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
9191
vim.g.maplocalleader = ' '
9292

9393
-- Set to true if you have a Nerd Font installed and selected in the terminal
94-
vim.g.have_nerd_font = false
94+
vim.g.have_nerd_font = true
9595

9696
-- [[ Setting options ]]
9797
-- See `:help vim.opt`
@@ -628,13 +628,34 @@ require('lazy').setup({
628628
-- But for many setups, the LSP (`tsserver`) will work just fine
629629
-- tsserver = {},
630630
--
631+
volar = {},
631632
jedi_language_server = {},
632633
intelephense = {},
633634
terraformls = {},
634635
templ = {
635636
filetypes = { 'templ' },
636637
},
637-
tsserver = {},
638+
ts_ls = {
639+
settings = {
640+
implicitProjectConfiguration = {
641+
checkJs = true,
642+
},
643+
},
644+
init_options = {
645+
plugins = {
646+
{
647+
name = '@vue/typescript-plugin',
648+
location = '/home/ocxm/.asdf/installs/nodejs/23.2.0/lib/node_modules/@vue/typescript-plugin',
649+
languages = { 'javascript', 'typescript', 'vue' },
650+
},
651+
},
652+
},
653+
filetypes = {
654+
'javascript',
655+
'typescript',
656+
'vue',
657+
},
658+
},
638659
gopls = {
639660
settings = {
640661
gopls = {
@@ -912,7 +933,23 @@ require('lazy').setup({
912933
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
913934
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
914935
opts = {
915-
ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' },
936+
ensure_installed = {
937+
'bash',
938+
'c',
939+
'diff',
940+
'go',
941+
'html',
942+
'javascript',
943+
'lua',
944+
'luadoc',
945+
'markdown',
946+
'markdown_inline',
947+
'php',
948+
'query',
949+
'terraform',
950+
'vim',
951+
'vimdoc',
952+
},
916953
-- Autoinstall languages that are not installed
917954
auto_install = true,
918955
highlight = {

0 commit comments

Comments
 (0)