summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/perlls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/perlls.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/perlls.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/perlls.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/perlls.lua
new file mode 100644
index 0000000..fba57d0
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/perlls.lua
@@ -0,0 +1,38 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ 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_dir = util.find_git_ancestor,
+ single_file_support = true,
+ },
+ 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",
+ },
+ },
+}