LunarVim / Neovim-from-scratch

📚 A Neovim config designed from scratch to be understandable
https://www.chrisatmachine.com/
GNU General Public License v3.0
5.4k stars 1.17k forks source link

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

Open dantxal opened 2 years ago

dantxal commented 2 years ago

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
fdumontmd commented 2 years ago

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 commented 1 year ago

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