You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
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~
- INFO: $VTE_VERSION='5402'
- INFO: $COLORTERM='truecolor'
health#nvim_lsp#check
========================================================================
## Checking language server protocol configuration
lsp.log
The lsp log remains empty.
Actual behaviour
I set the location list to the list of changes in the working tree with this function:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Function: git#to_qfix" Fill the locations list window with git diff hunks" From GitGutter plugin."""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""function!git#to_qfix()
" {{{1silent! Gcd
let locations = []
let cmd ='git --no-pager diff --no-ext-diff --no-color -U0'ifexists('g:gitgutter_diff_base')
let cmd .='' . g:gitgutter_diff_baseendifletdiff=systemlist(cmd)
let lnum =0forlineindiffifline=~ '^diff --git [^"]'let paths =line[11:]
let mid = (len(paths) -1) / 2let [fnamel, fnamer] = [paths[:mid-1], paths[mid+1:]]
let fname = fnamel ==# fnamer ? fnamel : fnamel[2:]
elseifline=~ '^diff --git "'let [_, fnamel, _, fnamer] =split(line, '"')
let fname = fnamel ==# fnamer ? fnamel : fnamel[2:]
elseifline=~ '^@@'let lnum =matchlist(line, '+\(\d\+\)')[1]
elseif lnum > 0calladd(locations, {'filename': fname, 'lnum': lnum, 'text': line})
let lnum =0endifendforif!empty(locations)
callsetloclist(0, locations)
lopenllelseecho'[git.vim] no changes'endifendfunction"}}}
Initially the location list is set (it's not empty and I can see it if I print it with echomsg), but as soon as it switches to a buffer with a lsp client (sumneko_lua in this case) it is replaced by the LSP locations list (it says so in the window statusline). You can see it in this asciicast:
Expected behaviour
Well if I set a location list I don't want LSP to mess with it...
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
nvim --version
:NVIM v0.5.0-634-g161cdba1e
nvim -c ":checkhealth nvim nvim_lsp"
lsp.log
The lsp log remains empty.
Actual behaviour
I set the location list to the list of changes in the working tree with this function:
Initially the location list is set (it's not empty and I can see it if I print it with
echomsg
), but as soon as it switches to a buffer with a lsp client (sumneko_lua
in this case) it is replaced by the LSP locations list (it says so in the window statusline). You can see it in this asciicast:Expected behaviour
Well if I set a location list I don't want LSP to mess with it...
The text was updated successfully, but these errors were encountered: