1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 01:10:06 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/perlls.lua

40 lines
897 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
2021-10-05 15:13:10 +08:00
return {
2021-10-05 15:13:10 +08:00
default_config = {
cmd = {
'perl',
'-MPerl::LanguageServer',
'-e',
'Perl::LanguageServer::run',
'--',
'--port 13603',
'--nostdio 0',
'--version 2.1.0',
},
settings = {
perl = {
perlCmd = 'perl',
perlInc = ' ',
fileFilter = { '.pm', '.pl' },
ignoreDirs = '.git',
},
},
filetypes = { 'perl' },
root_dir = util.find_git_ancestor,
single_file_support = true,
2021-10-05 15:13:10 +08:00
},
docs = {
description = [[
https://github.com/richterger/Perl-LanguageServer/tree/master/clients/vscode/perl
`Perl-LanguageServer`, a language server for Perl.
To use the language server, ensure that you have Perl::LanguageServer installed and perl command is on your path.
]],
default_config = {
root_dir = "vim's starting directory",
},
},
}