Use config recommended in the README for on_attach function (it first did not work on my custom function, then i reverted to readme to eliminate any config-blindess or silliness from my side)
place cursor on any symbol (or any text)
Actual behaviour
No highlight on CursorHold
Tried _:lua vim.lsp.buf.document_highlight() and it does its job. It even respects the CursorMoved augroup
This isnt a new error
There are reports on neovim and lsp-status
What is new is it worked until yesterday and I havent changed anything in the meantime (in my config)
Expected behaviour
Highlight on CursorHold
Health check
Checkhealth result
health#scnvim#check
========================================================================
## scnvim
- OK: SCNvim classes installed: /home/ranjith/.local/share/SuperCollider/Extensions/scide_scnvim
- OK: has("timers") - success
- INFO: sclang executable: /usr/bin/sclang
- INFO: Could not find scdoc render program. See :help |scnvim-help-system| for more information.
This is an optional dependency and only needed for SCDoc integration.
health#floaterm#check
========================================================================
## common
- INFO: Platform: linux
- INFO: Nvim: NVIM v0.5.0-dev+1191-gf89bfa686
- INFO: Plugin: ae7eea5
## terminal
- OK: Terminal emulator is available
## floating
- OK: Floating window is available
health#vimtex#check
========================================================================
## VimTeX
- OK: Vim version should have full support!
- OK: General viewer should work properly!
- OK: Compiler should work!
health#nvim_treesitter#check
========================================================================
## Installation
- OK: `tree-sitter` found 0.19.4 (6dd41e2e45f8b4a00fda21f28bc0ebc6b172ffed) (parser generator, only needed for :TSInstallFromGrammar)
- OK: `git` executable found.
- OK: `cc` executable found.
## Parser/Features H L F I
- query ✓ ✓ ✓ ✓
- c ✓ ✓ ✓ ✓
- cpp ✓ ✓ ✓ ✓
- json ✓ ✓ ✓ ✓
- yaml ✓ ✓ ✓ ✓
- toml ✓ ✓ ✓ ✓
- bash ✓ ✓ ✓ .
- supercollider ✓ ✓ ✓ ✓
- lua ✓ ✓ ✓ ✓
- html ✓ ✓ ✓ ✓
- css ✓ . ✓ ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents]
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang}
health#lspconfig#check
========================================================================
## Checking language server protocol configuration
- INFO: efm: configuration checked.
- INFO: clangd: configuration checked.
- INFO: diagnosticls: configuration checked.
- INFO: ccls: configuration checked.
- INFO: sumneko_lua: configuration checked.
- INFO: pyls: configuration checked.
- INFO: bashls: configuration checked.
- INFO: cssls: configuration checked.
- INFO: yamlls: configuration checked.
- INFO: jsonls: configuration checked.
- INFO: vimls: configuration checked.
- INFO: cmake: configuration checked.
- INFO: texlab: configuration checked.
health#completion_nvim#check
========================================================================
## general
- OK: neovim version is supported
## completion source
- OK: all completion sources are valid
## snippet source
- OK: You are using vim-vsnip as your snippet source
health#nvim#check
========================================================================
## Configuration
- OK: no issues found
## Performance
- OK: Build type: RelWithDebInfo
## Remote Plugins
- OK: Up to date
## terminal
- INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
- INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
health#provider#check
========================================================================
## Clipboard (optional)
- OK: Clipboard tool found: xclip
## Python 2 provider (optional)
- WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics.
- ERROR: Python provider error:
- ADVICE:
- provider/pythonx: Could not load Python 2:
python2 not found in search path or not executable.
python2.7 not found in search path or not executable.
python2.6 not found in search path or not executable.
/usr/bin/python is Python 3.9 and cannot provide Python 2.
- INFO: Executable: Not found
## Python 3 provider (optional)
- INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment.
- INFO: Executable: /usr/bin/python3
- INFO: Python version: 3.9.2
- INFO: pynvim version: 0.4.3
- OK: Latest pynvim is installed.
## Python virtualenv
- OK: no $VIRTUAL_ENV
## Ruby provider (optional)
- WARNING: `ruby` and `gem` must be in $PATH.
- ADVICE:
- Install Ruby and verify that `ruby` and `gem` commands work.
## Node.js provider (optional)
- INFO: Node.js: v15.12.0
- INFO: Nvim node.js host: /home/ranjith/.local/share/npm/lib/node_modules/neovim/bin/cli.js
- OK: Latest "neovim" npm/yarn package is installed: 4.9.0
## Perl provider (optional)
- ERROR: perl provider error:
- ADVICE:
- "Neovim::Ext" cpan module is not installed
How to reproduce the problem from neovim startup
Actual behaviour
No highlight on CursorHold Tried _:lua vim.lsp.buf.document_highlight() and it does its job. It even respects the CursorMoved augroup
This isnt a new error There are reports on neovim and lsp-status What is new is it worked until yesterday and I havent changed anything in the meantime (in my config)
Expected behaviour
Highlight on CursorHold
Health check
Checkhealth result
health#scnvim#check ======================================================================== ## scnvim - OK: SCNvim classes installed: /home/ranjith/.local/share/SuperCollider/Extensions/scide_scnvim - OK: has("timers") - success - INFO: sclang executable: /usr/bin/sclang - INFO: Could not find scdoc render program. See :help |scnvim-help-system| for more information. This is an optional dependency and only needed for SCDoc integration. health#floaterm#check ======================================================================== ## common - INFO: Platform: linux - INFO: Nvim: NVIM v0.5.0-dev+1191-gf89bfa686 - INFO: Plugin: ae7eea5 ## terminal - OK: Terminal emulator is available ## floating - OK: Floating window is available health#vimtex#check ======================================================================== ## VimTeX - OK: Vim version should have full support! - OK: General viewer should work properly! - OK: Compiler should work! health#nvim_treesitter#check ======================================================================== ## Installation - OK: `tree-sitter` found 0.19.4 (6dd41e2e45f8b4a00fda21f28bc0ebc6b172ffed) (parser generator, only needed for :TSInstallFromGrammar) - OK: `git` executable found. - OK: `cc` executable found. ## Parser/Features H L F I - query ✓ ✓ ✓ ✓ - c ✓ ✓ ✓ ✓ - cpp ✓ ✓ ✓ ✓ - json ✓ ✓ ✓ ✓ - yaml ✓ ✓ ✓ ✓ - toml ✓ ✓ ✓ ✓ - bash ✓ ✓ ✓ . - supercollider ✓ ✓ ✓ ✓ - lua ✓ ✓ ✓ ✓ - html ✓ ✓ ✓ ✓ - css ✓ . ✓ ✓ Legend: H[ighlight], L[ocals], F[olds], I[ndents] +) multiple parsers found, only one will be used x) errors found in the query, try to run :TSUpdate {lang} health#lspconfig#check ======================================================================== ## Checking language server protocol configuration - INFO: efm: configuration checked. - INFO: clangd: configuration checked. - INFO: diagnosticls: configuration checked. - INFO: ccls: configuration checked. - INFO: sumneko_lua: configuration checked. - INFO: pyls: configuration checked. - INFO: bashls: configuration checked. - INFO: cssls: configuration checked. - INFO: yamlls: configuration checked. - INFO: jsonls: configuration checked. - INFO: vimls: configuration checked. - INFO: cmake: configuration checked. - INFO: texlab: configuration checked. health#completion_nvim#check ======================================================================== ## general - OK: neovim version is supported ## completion source - OK: all completion sources are valid ## snippet source - OK: You are using vim-vsnip as your snippet source health#nvim#check ======================================================================== ## Configuration - OK: no issues found ## Performance - OK: Build type: RelWithDebInfo ## Remote Plugins - OK: Up to date ## terminal - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177 - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~ health#provider#check ======================================================================== ## Clipboard (optional) - OK: Clipboard tool found: xclip ## Python 2 provider (optional) - WARNING: No Python executable found that can `import neovim`. Using the first available executable for diagnostics. - ERROR: Python provider error: - ADVICE: - provider/pythonx: Could not load Python 2: python2 not found in search path or not executable. python2.7 not found in search path or not executable. python2.6 not found in search path or not executable. /usr/bin/python is Python 3.9 and cannot provide Python 2. - INFO: Executable: Not found ## Python 3 provider (optional) - INFO: `g:python3_host_prog` is not set. Searching for python3 in the environment. - INFO: Executable: /usr/bin/python3 - INFO: Python version: 3.9.2 - INFO: pynvim version: 0.4.3 - OK: Latest pynvim is installed. ## Python virtualenv - OK: no $VIRTUAL_ENV ## Ruby provider (optional) - WARNING: `ruby` and `gem` must be in $PATH. - ADVICE: - Install Ruby and verify that `ruby` and `gem` commands work. ## Node.js provider (optional) - INFO: Node.js: v15.12.0 - INFO: Nvim node.js host: /home/ranjith/.local/share/npm/lib/node_modules/neovim/bin/cli.js - OK: Latest "neovim" npm/yarn package is installed: 4.9.0 ## Perl provider (optional) - ERROR: perl provider error: - ADVICE: - "Neovim::Ext" cpan module is not installedLSP log
Log file
[ START ] 2021-03-30T09:45:05+0200 ] LSP logging initiated [ INFO ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp/rpc.lua:311 ] "Starting RPC client" { args = {}, cmd = "efm-langserver", extra = {}} [ DEBUG ] 2021-03-30T09:45:06+0200 ] /usr/share/nvim/runtime/lua/vim/lsp.lua:659 ] "LSP[efm]" "initialize_params" { capabilities = { callHierarchy = { dynamicRegistration = false,