@@ -474,7 +474,6 @@ require('lazy').setup({
474474 {
475475 ' pmizio/typescript-tools.nvim' ,
476476 dependencies = { ' nvim-lua/plenary.nvim' , ' neovim/nvim-lspconfig' },
477- opts = {},
478477 },
479478 },
480479 config = function ()
@@ -608,6 +607,10 @@ require('lazy').setup({
608607 local capabilities = vim .lsp .protocol .make_client_capabilities ()
609608 capabilities = vim .tbl_deep_extend (' force' , capabilities , require (' cmp_nvim_lsp' ).default_capabilities ())
610609
610+ require (' lspconfig' )[' typescript-tools' ].setup {
611+ capabilities = capabilities ,
612+ }
613+
611614 -- Enable the following language servers
612615 -- Feel free to add/remove any LSPs that you want here. They will automatically be installed.
613616 --
@@ -631,6 +634,24 @@ require('lazy').setup({
631634 -- tsserver = {},
632635 --
633636
637+ html = {
638+ cmd = { ' vscode-html-language-server' , ' --stdio' },
639+ filetypes = { ' html' },
640+ capabilities = capabilities ,
641+ },
642+
643+ cssls = {
644+ cmd = { ' vscode-css-language-server' , ' --stdio' },
645+ filetypes = { ' css' , ' scss' , ' less' },
646+ capabilities = capabilities ,
647+ },
648+
649+ jsonls = {
650+ cmd = { ' vscode-json-language-server' , ' --stdio' },
651+ filetypes = { ' json' },
652+ capabilities = capabilities ,
653+ },
654+
634655 lua_ls = {
635656 -- cmd = {...},
636657 -- filetypes = { ...},
@@ -661,25 +682,28 @@ require('lazy').setup({
661682 vim .list_extend (ensure_installed , {
662683 ' stylua' , -- Used to format Lua code
663684 ' lua_ls' ,
685+ ' prettierd' ,
686+ ' eslint_d' ,
687+ ' stylelint' ,
688+ ' tailwindcss' ,
664689 })
690+
665691 require (' mason-tool-installer' ).setup { ensure_installed = ensure_installed }
666692
667693 require (' mason-lspconfig' ).setup {
668694 handlers = {
669695 function (server_name )
696+ if server_name == ' tsserver' then
697+ return
698+ end
699+
670700 local server = servers [server_name ] or {}
671701 -- This handles overriding only values explicitly passed
672702 -- by the server configuration above. Useful when disabling
673703 -- certain features of an LSP (for example, turning off formatting for tsserver)
674704 server .capabilities = vim .tbl_deep_extend (' force' , {}, capabilities , server .capabilities or {})
675- if server_name == ' tsserver' then
676- return
677- end
678705 require (' lspconfig' )[server_name ].setup (server )
679706 end ,
680- [' typescript-tools' ] = function ()
681- require (' typescript-tools' ).setup {}
682- end ,
683707 },
684708 }
685709 end ,
0 commit comments