Skip to content

Commit

Permalink
Fix E461 Illegal Variable Name error in neovim (#369)
Browse files Browse the repository at this point in the history
Apparently, neovim enforces that l: variables can only be used in a
function.  Vim doesn't raise an error.

Co-authored-by: fenuks <fenuks>
  • Loading branch information
fenuks committed Jan 18, 2021
1 parent 201b7b9 commit c09765c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions after/plugin/lsc.vim
Expand Up @@ -3,6 +3,6 @@ let g:lsc_registered_commands = 1

if !exists('g:lsc_server_commands') | finish | endif

for [l:filetype, l:config] in items(g:lsc_server_commands)
call RegisterLanguageServer(l:filetype, l:config)
for [s:filetype, s:config] in items(g:lsc_server_commands)
call RegisterLanguageServer(s:filetype, s:config)
endfor

0 comments on commit c09765c

Please sign in to comment.