Fix typo in perlpls config

Support javascript in HTML commentstring
This commit is contained in:
Jonas Ryssel 2024-08-20 15:09:35 +02:00
parent d3d0036521
commit f761941a80

View File

@ -824,6 +824,8 @@ augroup CustomCommentDefinitions
if &ft == 'html' if &ft == 'html'
if join(syntaxGroups, ',') =~ 'ShaderScript' if join(syntaxGroups, ',') =~ 'ShaderScript'
setlocal commentstring=\/\/\ %s setlocal commentstring=\/\/\ %s
elseif join(syntaxGroups, ',') =~ 'javascript'
setlocal commentstring=\/\/\ %s
elseif join(syntaxGroups, ',') =~ 'html' elseif join(syntaxGroups, ',') =~ 'html'
setlocal commentstring=<!--\ %s\ --> setlocal commentstring=<!--\ %s\ -->
endif endif
@ -1360,7 +1362,7 @@ lua <<EOF
-- Go to definition -- Go to definition
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
-- Show perldoc for function under cursor -- 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) -- Show list of function in current module (kræver FZF)
vim.keymap.set('n', 'L', jix_lsp.document_functions, bufopts) vim.keymap.set('n', 'L', jix_lsp.document_functions, bufopts)
-- Show signature for function under cursor (virker i skrivende stund ikke med subroutine signatures) -- Show signature for function under cursor (virker i skrivende stund ikke med subroutine signatures)