Skip to content

Commit 8891d93

Browse files
rkiyanchukprabirshrestha
authored andcommitted
Fix check for signs support in Neovim (#402)
Fixes #322
1 parent 21d51ff commit 8891d93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoload/lsp/ui/vim/signs.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" TODO: handle !has('signs')
22
" TODO: handle signs clearing when server exits
33
" https://github.com/vim/vim/pull/3652
4-
let s:supports_signs = has('signs') && has('patch-8.1.0772') && exists('*sign_define')
4+
let s:supports_signs = exists('*sign_define') && (has('nvim') || has('patch-8.1.0772'))
55
let s:enabled = 0
66
let s:signs = {} " { server_name: { path: {} } }
77
let s:severity_sign_names_mapping = {

plugin/lsp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let g:lsp_async_completion = get(g:, 'lsp_async_completion', 0)
88
let g:lsp_log_file = get(g:, 'lsp_log_file', '')
99
let g:lsp_log_verbose = get(g:, 'lsp_log_verbose', 1)
1010
let g:lsp_debug_servers = get(g:, 'lsp_debug_servers', [])
11-
let g:lsp_signs_enabled = get(g:, 'lsp_signs_enabled', has('patch-8.1.0772') && exists('*sign_define'))
11+
let g:lsp_signs_enabled = get(g:, 'lsp_signs_enabled', exists('*sign_define') && (has('nvim') || has('patch-8.1.0772')))
1212
let g:lsp_virtual_text_enabled = get(g:, 'lsp_virtual_text_enabled', exists('*nvim_buf_set_virtual_text'))
1313
let g:lsp_highlights_enabled = get(g:, 'lsp_highlights_enabled', exists('*nvim_buf_add_highlight'))
1414
let g:lsp_textprop_enabled = get(g:, 'lsp_textprop_enabled', exists('*prop_add') && !g:lsp_highlights_enabled)

0 commit comments

Comments
 (0)