New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new layer lsp #1014

Merged
merged 5 commits into from Nov 20, 2017
Copy path View file
@@ -223,6 +223,12 @@ let g:spacevim_error_symbol = '✖'
" <
let g:spacevim_warning_symbol = ''
""
" Set the information symbol for SpaceVim's syntax maker. Default is '🛈'.
" >
" let g:spacevim_info_symbol = 'i'
" <
let g:spacevim_info_symbol = '🛈'
""
" Set the SpaceVim cursor shape in the terminal. Set to 0 to prevent Nvim from
" changing the cursor shape. Set to 1 to enable non-blinking mode-sensitive
" cursor (this is the default). Set to 2 to enable blinking mode-sensitive
@@ -470,6 +476,11 @@ endif
let g:spacevim_leader_guide_submode_mappings = {'<C-C>': "win_close"}
" SpaceVim/LanguageClient-neovim {{{
if !exists('g:LanguageClient_serverCommands')
let g:LanguageClient_serverCommands = {}
endif
" }}}
command -nargs=1 LeaderGuide call SpaceVim#mapping#guide#start_by_prefix('0', <args>)
@@ -71,7 +71,6 @@ function! SpaceVim#layers#autocomplete#plugins() abort
\ }])
endif
call add(plugins, ['tenfyzhong/CompleteParameter.vim', {'merged': 0}])
call add(plugins, ['SpaceVim/LanguageClient-neovim', {'merged': 0, 'if' : has('python3')}])
return plugins
endfunction
@@ -0,0 +1,64 @@
function! SpaceVim#layers#lsp#plugins() abort
let plugins = []
if has('nvim')
let plugins = add(plugins, ['SpaceVim/LanguageClient-neovim',
\ { 'merged': 0, 'if': has('python3') }])
endif
return plugins
endfunction
function! SpaceVim#layers#lsp#config() abort
" SpaceVim/LanguageClient-neovim {{{
let g:LanguageClient_diagnosticsDisplay = {
\ 1: {
\ 'name': 'Error',
\ 'signText': g:spacevim_error_symbol,
\ },
\ 2: {
\ 'name': 'Warning',
\ 'signText': g:spacevim_warning_symbol,
\ },
\ 3: {
\ 'name': 'Information',
\ 'signText': g:spacevim_info_symbol,
\ },
\ 4: {
\ 'name': 'Hint',
\ 'signText': g:spacevim_info_symbol,
\ },
\ }
if g:spacevim_enable_neomake
let g:LanguageClient_diagnosticsDisplay[1].texthl = 'NeomakeError'
let g:LanguageClient_diagnosticsDisplay[1].signTexthl = 'NeomakeErrorSign'
let g:LanguageClient_diagnosticsDisplay[2].texthl = 'NeomakeWarning'
let g:LanguageClient_diagnosticsDisplay[2].signTexthl =
\ 'NeomakeWarningSign'
let g:LanguageClient_diagnosticsDisplay[3].texthl = 'NeomakeInfo'
let g:LanguageClient_diagnosticsDisplay[3].signTexthl = 'NeomakeInfoSign'
let g:LanguageClient_diagnosticsDisplay[4].texthl = 'NeomakeMessage'
let g:LanguageClient_diagnosticsDisplay[4].signTexthl =
\ 'NeomakeMessageSign'
elseif g:spacevim_enable_ale
let g:LanguageClient_diagnosticsDisplay[1].texthl = 'ALEError'
let g:LanguageClient_diagnosticsDisplay[1].signTexthl = 'ALEErrorSign'
let g:LanguageClient_diagnosticsDisplay[2].texthl = 'ALEWarning'
let g:LanguageClient_diagnosticsDisplay[2].signTexthl = 'ALEWarningSign'
let g:LanguageClient_diagnosticsDisplay[3].texthl = 'ALEInfo'
let g:LanguageClient_diagnosticsDisplay[3].signTexthl = 'ALEInfoSign'
let g:LanguageClient_diagnosticsDisplay[4].texthl = 'ALEInfo'
let g:LanguageClient_diagnosticsDisplay[4].signTexthl = 'ALEInfoSign'
endif
let g:LanguageClient_autoStart = 0
" }}}
endfunction
Copy path View file
@@ -27,4 +27,8 @@ let g:neomake_warning_sign = get(g:, 'neomake_warning_sign', {
\ 'text': get(g:,'spacevim_warning_symbol', ''),
\ 'texthl': (g:spacevim_colorscheme ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
\ })
let g:neomake_info_sign = get(g:, 'neomake_info_sign', {
\ 'text': get(g:,'spacevim_info_symbol', '🛈'),
\ 'texthl': (g:spacevim_colorscheme ==# 'gruvbox' ? 'GruvboxYellowSign' : 'todo'),
\ })
" vim:set et sw=2:
Copy path View file
@@ -10,6 +10,7 @@ let g:syntastic_check_on_open = get(g:, 'syntastic_check_on_open', 0)
let g:syntastic_check_on_wq = get(g:, 'syntastic_check_on_wq', 0)
let g:syntastic_error_symbol = get(g:, 'spacevim_error_symbol', '')
let g:syntastic_warning_symbol = get(g:, 'spacevim_warning_symbol', '')
let g:syntastic_info_symbol = get(g:, 'spacevim_info_symbol', '🛈')
let g:syntastic_vimlint_options = get(g:, 'syntastic_vimlint_options', {
\'EVL102': 1 ,
\'EVL103': 1 ,
Copy path View file
@@ -1,6 +1,7 @@
scriptencoding utf-8
let g:ale_sign_error = get(g:, 'spacevim_error_symbol', '')
let g:ale_sign_warning = get(g:,'spacevim_warning_symbol', '')
let g:ale_sign_info = get(g:,'spacevim_info_symbol', '🛈')
let g:ale_echo_msg_format = get(g:, 'ale_echo_msg_format', '%severity%: %linter%: %s')
if g:spacevim_colorscheme == 'gruvbox'
Copy path View file
@@ -258,6 +258,12 @@ Set the warning symbol for SpaceVim's syntax maker. Default is '⚠'.
let g:spacevim_warning_symbol = '!'
<
*g:spacevim_info_symbol*
Set the information symbol for SpaceVim's syntax maker. Default is '🛈'.
>
let g:spacevim_info_symbol = 'i'
<
*g:spacevim_terminal_cursor_shape*
Set the SpaceVim cursor shape in the terminal. Set to 0 to prevent Nvim from
changing the cursor shape. Set to 1 to enable non-blinking mode-sensitive
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.