-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
lsp: no root directory despite go.mod being present #452
Comments
Is the filetype being correctly detected as templ? If not, that's the problem. You need to show the whole screenshot. |
Hi @a-h sorry for the missing part of the sc, here it is |
My understanding is that Neovim will only start the LSP is the root directory configuration matches. In the case of templ, having a Here's the exact part of my Neovim configuration that configures the root directory. I'm not sure where your config is going wrong. Maybe you could share a repo with the complete config in it? |
Only thing is I removed the root config after it didn't work, but sure, here's my config https://github.com/JulianH99/nvim/tree/lsp (already on the lsp branch which is the one I'm using) |
@JulianH99 - a recent PR just landed which contains a known working Neovim configuration with Lazyvim: #463 I can see that there's a number of extra settings related to cmp_nvim_lsp in the example config that you don't have in yours. Maybe you could try using that config as a base and building out from there? |
@a-h I tried that config and yours too, but nothing seems to be working. I use mason, I added a custom handler for the templ lsp, I put the default config before mason setup, inside the handler, after the setup, and nothing worked |
On neovim, the lsp is starded but does not seem to work, and upon executing :LspInfo, this is the result I get
And this is my file structure
I already tried the code on the logging section as well to see if using
root_patern
would help, but it didn'tThe text was updated successfully, but these errors were encountered: