Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dantxal opened this issue Jul 3, 2022 · 2 comments

Comments

@dantxal
Copy link

dantxal commented Jul 3, 2022

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 dantxal changed the title which-key overrides "g" (gd, gr) from LSP can't get tsserver to attach, only null-ls shows as language server on buffers Jul 3, 2022
@fdumontmd
Copy link
Contributor

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.

@holasoymas
Copy link

holasoymas commented Dec 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants