Neovim-from-scratch icon indicating copy to clipboard operation
Neovim-from-scratch copied to clipboard

can't get tsserver to attach, only null-ls shows as language server on buffers

Open dantxal opened this issue 2 years ago • 2 comments

EDIT: Changed title after some more debugging.

Does anyone know a way to debug the on_attach function so I can fix this problem?

I wanted to log what is coming as a client and buffnr.

Language client log: /Users/dantxal/.local/state/nvim/lsp.log
Detected filetype:   typescript

1 client(s) attached to this buffer: 


Client: null-ls (id: 1, pid: 5001, bufnr: [16])
	filetypes:       javascriptreact, javascript, json, yaml, css, jsonc, scss, handlebars, markdown, graphql, html, vue, less, typescript, typescriptreact, python
	autostart:       false
	root directory:  /Users/dantxal/projects/webtrip-wts-wintour-api
	cmd:             nvim

Configured servers list: jsonls, sumneko_lua

dantxal avatar Jul 03 '22 17:07 dantxal

The list of servers that can be used is in lua/user/lsp/configs.lua variable servers. You need to update that variables for the new server to be configured and therefore available.

fdumontmd avatar Jul 07 '22 09:07 fdumontmd

The list of servers that can be used is in lua/user/lsp/configs.lua variable servers. You need to update that variables for the new server to be configured and therefore available.

How can i setup LSP for new languages. When I add javascript, java, ruby, golang etc it didn't work ? javaerror

holasoymas avatar Dec 20 '22 07:12 holasoymas