#[SOLVED] TS_LS not working as alternative to deprecated TSSERVER

10 messages · Page 1 of 1 (latest)

shut whale
#

here is my config:
return {
{
"williamboman/mason.nvim",
config = function()
require("mason").setup()
end
},
{
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = { "lua_ls", "tsserver" }
})
end
},
{
"neovim/nvim-lspconfig",
config = function()
local lspconfig = require("lspconfig")
lspconfig.lua_ls.setup({})
lspconfig.ts_ls.setup({})
vim.keymap.set('n', 'K', vim.lsp.buf.hover, {})
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, {})
vim.keymap.set({ 'n' }, '<leader>ca', vim.lsp.buf.code_action, {})
end
}

}
I receive errors that say spawning language server with cmd typescript-language-server failed its either not installed, missing from path or not executable.
im using lazy.nvim

worldly maple
timid snow
#

Do you have it installed?

heady vapor
shut whale
#

i got it sorted, needed to install npm

timid snow
#

... solved

topaz vergeBOT
#

#9742 📣 If there is nothing else that we can do for you, please close this thread by adding "[SOLVED]" to the title.

  • You can do this on desktop by clicking the three dots on the top right of the page, and pressing "Edit Post".
  • You can also do this on Android / iOS by long tapping your post in the text channel list, and tapping "Edit Post".

Your title should be like so: https://cdn.discordapp.com/attachments/503224329191030787/1039841700417384498/image.png
Thank you

timid snow
#

@shut whale

shut whale
lofty hullBOT
#

hm7 received a thank you cookie!