diff options
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/lua/config/lazy.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/lsp/perlls.lua | 23 | ||||
-rw-r--r-- | .config/nvim/lua/lsp/perlnavigator.lua | 16 |
3 files changed, 24 insertions, 17 deletions
diff --git a/.config/nvim/lua/config/lazy.lua b/.config/nvim/lua/config/lazy.lua index 5041634..2b8d66d 100644 --- a/.config/nvim/lua/config/lazy.lua +++ b/.config/nvim/lua/config/lazy.lua @@ -83,7 +83,7 @@ require('lazy').setup({ default_overlength = 80, grace_length = 1, highlight_to_eol = true, - disable_ft = { 'qf', 'help', 'man', 'checkhealth', 'lazy', 'packer', 'NvimTree', 'Telescope', 'WhichKey', 'text', 'csv', 'lua', 'gosum', '' } + disable_ft = { 'qf', 'help', 'man', 'checkhealth', 'lazy', 'packer', 'NvimTree', 'Telescope', 'WhichKey', 'text', 'csv', 'lua', 'gosum', 'sh', '' } } end }, diff --git a/.config/nvim/lua/lsp/perlls.lua b/.config/nvim/lua/lsp/perlls.lua new file mode 100644 index 0000000..b995cd2 --- /dev/null +++ b/.config/nvim/lua/lsp/perlls.lua @@ -0,0 +1,23 @@ +vim.lsp.config('perlls', { + cmd = { + 'perl', + '-MPerl::LanguageServer', + '-e', + 'Perl::LanguageServer::run', + '--', + '--port 13603', + '--nostdio 0', + }, + settings = { + perl = { + perlCmd = 'perl', + perlInc = ' ', + fileFilter = { '.pm', '.pl' }, + ignoreDirs = '.git', + }, + }, + filetypes = { 'perl' }, + root_markers = { '.git' }, +}) + +vim.lsp.enable('perlls') diff --git a/.config/nvim/lua/lsp/perlnavigator.lua b/.config/nvim/lua/lsp/perlnavigator.lua deleted file mode 100644 index 1ba0024..0000000 --- a/.config/nvim/lua/lsp/perlnavigator.lua +++ /dev/null @@ -1,16 +0,0 @@ -vim.lsp.config('perlnavigator', { - cmd = {'perlnavigator'}, - filetypes = {'perl'}, - root_markers = {'.git'}, - settings = { - perlnavigator = { - perlPath = 'perl', - enableWarnings = true, - perltidyProfile = '', - perlcriticProfile = '', - perlcriticEnabled = true, - } - } -}) - -vim.lsp.enable('perlnavigator') |