Questions tagged [nvim-lspconfig]

62 questions
2
votes
2 answers

File ".stats" when run python in Neovim

I'm a beginner for Neovim recently I have a problem that is when I run any python file immediately after that in my local folder auto-create a new file that has end file name is ".stats".I posted this post wishes someone to can help me. Thank u for…
thep200
  • 29
  • 6
2
votes
1 answer

Neovim lspconfig plugin: attempt to call field 'nvim_multiline_command` (a nil value)

Recently I'm getting this error when opening a file for which I have language server installed: (this is in neovim :messages) Error detected while processing BufEnter Autocommands for "": E5108: Error executing lua [string ":lua"]:47:…
user10706046
1
vote
1 answer

pylint: unable to import 'requests' using nvim with pylsp and pylint enabled

I'm having a weird problem with pylint complaining about an import problem: pylint: [import-error] Unable to import 'requests' [E0401] This makes no sense since requests is a standard library. Also, I have no issues with importing other standard…
0x4ndy
  • 1,216
  • 1
  • 12
  • 25
1
vote
0 answers

Is there a way to automagically import static variables like when importing objects in neovim with jdtls and nvim-cmp

I have set up neovim to have all of the features that I want from intelij and none of the ones I don't, or at least I thought so until a couple days ago I realized that when I reference a static variable from another file the lsp freaks out and it…
negbi2
  • 23
  • 4
1
vote
0 answers

How to debug nvim-lspconfig neovim plugin?

I'm using the neovim plugin nvim-lspconfig setup with clangd server and a generated compile_commands.json file for C++ development. vim.lsp.buf.definition (go to definition) works most of the time, but does not work for some symbols. Any tips on…
1
vote
0 answers

LazyVim LSP ignore errors

I'm attempting to configure pylsp to ignore or modify certain errors such as line length. Following the documentation for pylsp and lazyvim, I have created a pylspignore.lua file and placed it in my ~/.config/nvim/lua/plugins/ directory. In my…
Peter
  • 142
  • 1
  • 12
1
vote
1 answer

Can I configure nvim-lspconfig to fail silently rather than print a warning?

Over time I'm adding more and more language servers in nvim. This is starting to get somewhat annoying when I use nvim outside of a project context on a filetype that I don't have an LSP globally installed for. Every time, a warning is printed that…
Hubro
  • 56,214
  • 69
  • 228
  • 381
1
vote
0 answers

In nvim, how can I I make it so the mouse will select a split, but not select any text. I only want the mouse to control window focus

I want to be able to toggle on and off this potential feature too. Sometimes, I don't want to change the cursor position, but I want to use my mouse to select a split to focus on. I tried disabling mouse and fiddling with in by typing :h mouse in…
1
vote
1 answer

mason lsp pyright seems to be download but dosen't work on vim

I have a problem on my nvim LSP. according to mason plugin the pyright is downloaded and I on other IDE the lsp works great. when i open python file with neovim it didn't recognized import and basic functions. someone can handle this…
Dump Eldor
  • 92
  • 1
  • 11
1
vote
3 answers

How to convert this viml autocommand into .lua config for neovim?

au FileType python let b:coc_root_patterns = ['.git', '.env', 'venv', '.venv', 'setup.cfg', 'setup.py', 'pyrightconfig.json'] I guess not many people using this config with neovim.
1
vote
1 answer

gopls neovim lsp server json rpc parse error on PCompletionListPCompletion.capabilities.textDocument.completion.completionList.itemDefaults

After configuring neovim with mason, mason-lspconfig, nvim-lspconfig, null-ls, and mason-null-ls and installing the gopls lsp server, I recently started getting this error upon opening a go file. In plain text: RPC[Error] code_name = ParseError,…
1
vote
0 answers

LSP autocomplete not ful complete [mfussenegger/nvim-jdtls]

I use hrsh7th/nvim-compe for autocomplete and mfussenegger/nvim-jdtls for Java neovim development (If it's important) and I would like to get advice about unexpected problem: When I type for example System.out.pr..., plugin show me that I can…
Auror
  • 11
  • 1
1
vote
0 answers

In LSP tsserver.json add html autocompletion using Neovim (Lunar Vim specifically)?

Issue: I install tsserver using Lsp in Neovim, more precisely using Lunar Vim, and I was editing a .jsx file when I try to use html tags in the file, and I saw that there was not completion for the basic html tags such as div, h1, button, and so…
Emmanuel
  • 11
  • 1
1
vote
1 answer

clangd does not find `compile_commands.json` automatically

Setup I'm using clangd through neovim with nvim-lspconfig. require('lspconfig').clangd.setup { -- on_attach = keybinds.on_attach, cmd = { "clangd", "--background-index", "--suggest-missing-includes", --…
Olli
  • 375
  • 5
  • 15
1
vote
1 answer

Why keybindings in my neovim LSP configuration file does not working?

local M = {} -- TODO: backfill this to template M.setup = function() local signs = { { name = "DiagnosticSignError", text = "" }, { name = "DiagnosticSignWarn", text = "" }, { name = "DiagnosticSignHint", text = "" }, { name =…
ulmas
  • 517
  • 1
  • 5
  • 15