File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -614,8 +614,8 @@ require('lazy').setup({
614614 -- Some languages (like typescript) have entire language plugins that can be useful:
615615 -- https://github.com/pmizio/typescript-tools.nvim
616616 --
617- -- But for many setups, the LSP (`tsserver `) will work just fine
618- -- tsserver = {},
617+ -- But for many setups, the LSP (`ts_ls `) will work just fine
618+ -- ts_ls = {},
619619 --
620620
621621 lua_ls = {
@@ -653,10 +653,14 @@ require('lazy').setup({
653653 require (' mason-lspconfig' ).setup {
654654 handlers = {
655655 function (server_name )
656+ -- Temporary fix until Mason updates tsserver to ts_ls
657+ if server_name == ' tsserver' then
658+ server_name = ' ts_ls'
659+ end
656660 local server = servers [server_name ] or {}
657661 -- This handles overriding only values explicitly passed
658662 -- by the server configuration above. Useful when disabling
659- -- certain features of an LSP (for example, turning off formatting for tsserver )
663+ -- certain features of an LSP (for example, turning off formatting for ts_ls )
660664 server .capabilities = vim .tbl_deep_extend (' force' , {}, capabilities , server .capabilities or {})
661665 require (' lspconfig' )[server_name ].setup (server )
662666 end ,
You can’t perform that action at this time.
0 commit comments