Fix typo in perlpls config
Support javascript in HTML commentstring
This commit is contained in:
parent
d3d0036521
commit
f761941a80
4
init.vim
4
init.vim
@ -824,6 +824,8 @@ augroup CustomCommentDefinitions
|
||||
if &ft == 'html'
|
||||
if join(syntaxGroups, ',') =~ 'ShaderScript'
|
||||
setlocal commentstring=\/\/\ %s
|
||||
elseif join(syntaxGroups, ',') =~ 'javascript'
|
||||
setlocal commentstring=\/\/\ %s
|
||||
elseif join(syntaxGroups, ',') =~ 'html'
|
||||
setlocal commentstring=<!--\ %s\ -->
|
||||
endif
|
||||
@ -1360,7 +1362,7 @@ lua <<EOF
|
||||
-- Go to definition
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
|
||||
-- Show perldoc for function under cursor
|
||||
vim.keymap.set('n', 'K', vim.sp.buf.hover, bufopts)
|
||||
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
|
||||
-- Show list of function in current module (kræver FZF)
|
||||
vim.keymap.set('n', 'L', jix_lsp.document_functions, bufopts)
|
||||
-- Show signature for function under cursor (virker i skrivende stund ikke med subroutine signatures)
|
||||
|
Loading…
Reference in New Issue
Block a user