129 questions
1
vote
0
answers
54
views
Error while configuring jdtls on neovim 0.12 without using any plugin
I am trying to run jdtls lsp on the latest nvim 0.12 with minimal setup without using any plugin for my nvim version:
NVIM v0.12.0-dev-5299967
Build type: Debug
LuaJIT 2.1.1764270282
However, when i ...
1
vote
0
answers
128
views
Inlay hints not appearing with nvim-lspconfig
I'm using nvim-lspconfig and inlay lines are not showing up for any rust file I'm editing.
Here's the config located in .config/nvim/lua/plugins/lsp-config.lua
{
"neovim/nvim-lspconfig",
...
0
votes
1
answer
387
views
dartls error as Neovim LSP server for a Flutter project
I am using Lazyvim, a Neovim distro as an editor for my Flutter project in Windows. I installed flutter-tools.nvim and installed dcm using mason.
The setup is ok, but I am having trouble with the go ...
0
votes
0
answers
113
views
config "tofu_ls" not found. Ensure it is listed in `config.md` or added as a custom server. Why am I getting this even though its is present in config
This is my lsp config for nvim,
return {
"neovim/nvim-lspconfig",
event = { "BufReadPost", "BufWritePost", "BufNewFile" },
branch = "master",
...
1
vote
0
answers
47
views
Why DenoLS is removing all blank lines? Code unreadable (NeoVim + AstroNVim)
I don't know why, but seems that denoLS is removing all blank lines, no matter what, from my Deno scripts, which is making the code very cramped and, is a very annoying behaviour of the formatter.
Why?...
3
votes
1
answer
5k
views
Setting up handlers for mason-lspconfig in Neovim with luasnip returns a nil value
I received a nil value when attempting to override the mason-lspconfig handlers in my configuration using the following code.
There was a similar issue and solution raised on GitHub at nvim-luasnip, ...
1
vote
1
answer
118
views
NeoVim nvim-cmp - crashes when typing "$" in CSS/SCSS files
After installing "nvim-autopairs" which generates matching closing tags for functions/css etc, I am getting this error.
Now I have Lazy Package Manager installed, which installed nvim-...
1
vote
1
answer
381
views
clangd doesn't find standard libs, throws error in line #include <vector> stating "file not found"
I'm using nvim 0.11.1 in a lsp config, and got clangd installed via mason.
The project I'm working on uses the picoSDK, and clangd works inside nvim.
The problem is, that it can't seem to find the lib ...
1
vote
1
answer
44
views
Failing to get pontusk/cmp-sass-variables to work in NVIM Kickstart with Lazy package-manager
Problem: no completions of SCSS variables like $color-red in all files. I tried autocompletes in variables.scss file itsself. In other SCSS files like general.scss which includes the variables.scss ...
0
votes
0
answers
115
views
Nvim ESLint not working properly in React TypeScript
I have a React TypeScript project, here is .eslintrc.json:
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:...
1
vote
1
answer
658
views
Configuring Protobuf support for NeoVim
I am trying to configure Protobuf LSP support with nvim (I am using Lazyvim package manager). I've read here that bufls is deprecated and that we should be using buf_ls. Using this snippet, I've ...
1
vote
0
answers
289
views
GoPls LSP is not loading manually when I open a .go file
I have configured the gopls LSP as shown below in lspconfig.lua:
lspconfig.gopls.setup {
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
cmd = {"gopls"},
...
2
votes
0
answers
70
views
How to setup compilerOptions during tsserver.setup({})?
Hi I've been trying to setup my nvim lsp tsserver compilerOptions during initialization of my lsp but failed. Current docs does not specifically have the compilerOptions in their examples.
I tried to ...
0
votes
0
answers
89
views
Neovim -Lsp "angularls" cannot find root. Runs in "Single File Mode"
So I'm running my angular project in Neovim (started recently) and when I open a project file and run :LspInfo it says root directory: Running in single file mode. But that doesen't help me at all ...
1
vote
1
answer
1k
views
Vue LSP(Volar 2.0) in neovim doesn't work for script section
I recently start working on vue3 framework. As a neovim(neovim 10.0) user I wanted to integrate lsp server in my workflow. I finally wrote the the config like this.
local lspconfig = require "...