From 6e6d75b7a446a13ec2bdaaf7934c071936ad3d8c Mon Sep 17 00:00:00 2001 From: Seth Daniel Date: Sun, 6 Mar 2022 15:48:45 -0600 Subject: add perlnavigator (#522) --- lua/nvim-lsp-installer/_generated/filetype_map.lua | 1 + lua/nvim-lsp-installer/_generated/metadata.lua | 3 +++ .../_generated/schemas/perlnavigator.lua | 3 +++ lua/nvim-lsp-installer/servers/init.lua | 1 + .../servers/perlnavigator/init.lua | 20 ++++++++++++++++++++ 5 files changed, 28 insertions(+) create mode 100644 lua/nvim-lsp-installer/_generated/schemas/perlnavigator.lua create mode 100644 lua/nvim-lsp-installer/servers/perlnavigator/init.lua (limited to 'lua') diff --git a/lua/nvim-lsp-installer/_generated/filetype_map.lua b/lua/nvim-lsp-installer/_generated/filetype_map.lua index d7d46752..621de451 100644 --- a/lua/nvim-lsp-installer/_generated/filetype_map.lua +++ b/lua/nvim-lsp-installer/_generated/filetype_map.lua @@ -94,6 +94,7 @@ return { opencl = { "opencl_ls" }, org = { "ltex" }, os = { "bsl_ls" }, + perl = { "perlnavigator" }, php = { "intelephense", "phpactor", "psalm", "tailwindcss" }, plaintex = { "ltex" }, postcss = { "tailwindcss" }, diff --git a/lua/nvim-lsp-installer/_generated/metadata.lua b/lua/nvim-lsp-installer/_generated/metadata.lua index d07ea455..b7cf53a3 100644 --- a/lua/nvim-lsp-installer/_generated/metadata.lua +++ b/lua/nvim-lsp-installer/_generated/metadata.lua @@ -181,6 +181,9 @@ return { opencl_ls = { filetypes = { "opencl" } }, + perlnavigator = { + filetypes = { "perl" } + }, phpactor = { filetypes = { "php" } }, diff --git a/lua/nvim-lsp-installer/_generated/schemas/perlnavigator.lua b/lua/nvim-lsp-installer/_generated/schemas/perlnavigator.lua new file mode 100644 index 00000000..88f5467e --- /dev/null +++ b/lua/nvim-lsp-installer/_generated/schemas/perlnavigator.lua @@ -0,0 +1,3 @@ +-- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY. +-- stylua: ignore start +return {properties = {["perlnavigator.enableWarnings"] = {default = true,description = "Enable warnings using -Mwarnings command switch",scope = "resource",type = "boolean"},["perlnavigator.includePaths"] = {default = {},description = "Array of paths added to @INC. You can use $workspaceRoot as a placeholder.",scope = "resource",type = "array"},["perlnavigator.logging"] = {default = true,description = "Log to stdout from the navigator. Viewable in the Perl Navigator LSP log",scope = "resource",type = "boolean"},["perlnavigator.perlPath"] = {default = "perl",description = "Full path to the perl executable (no aliases, .bat files or ~/)",scope = "resource",type = "string"},["perlnavigator.perlcriticEnabled"] = {default = true,description = "Enable perl critic.",scope = "resource",type = "boolean"},["perlnavigator.perlcriticProfile"] = {default = "",description = "Path to perl critic profile. Otherwise perlcritic itself will default to ~/.perlcriticrc. (no aliases, .bat files or ~/)",scope = "resource",type = "string"},["perlnavigator.perltidyProfile"] = {default = "",description = "Path to perl tidy profile (no aliases, .bat files or ~/)",scope = "resource",type = "string"},["perlnavigator.severity1"] = {default = "hint",description = "Editor Diagnostic severity level for Critic severity 1",enum = { "error", "warning", "info", "hint", "none" },scope = "resource",type = "string"},["perlnavigator.severity2"] = {default = "hint",description = "Editor Diagnostic severity level for Critic severity 2",enum = { "error", "warning", "info", "hint", "none" },scope = "resource",type = "string"},["perlnavigator.severity3"] = {default = "hint",description = "Editor Diagnostic severity level for Critic severity 3",enum = { "error", "warning", "info", "hint", "none" },scope = "resource",type = "string"},["perlnavigator.severity4"] = {default = "info",description = "Editor Diagnostic severity level for Critic severity 4",enum = { "error", "warning", "info", "hint", "none" },scope = "resource",type = "string"},["perlnavigator.severity5"] = {default = "warning",description = "Editor Diagnostic severity level for Critic severity 5",enum = { "error", "warning", "info", "hint", "none" },scope = "resource",type = "string"},["perlnavigator.trace.server"] = {default = "messages",description = "Traces the communication between VS Code and the language server.",enum = { "off", "messages", "verbose" },scope = "window",type = "string"}},title = "Perl Navigator",type = "object"} \ No newline at end of file diff --git a/lua/nvim-lsp-installer/servers/init.lua b/lua/nvim-lsp-installer/servers/init.lua index d69db612..939d2539 100644 --- a/lua/nvim-lsp-installer/servers/init.lua +++ b/lua/nvim-lsp-installer/servers/init.lua @@ -91,6 +91,7 @@ local CORE_SERVERS = Data.set_of { "ocamllsp", "omnisharp", "opencl_ls", + "perlnavigator", "phpactor", "powershell_es", "prismals", diff --git a/lua/nvim-lsp-installer/servers/perlnavigator/init.lua b/lua/nvim-lsp-installer/servers/perlnavigator/init.lua new file mode 100644 index 00000000..c944eeb9 --- /dev/null +++ b/lua/nvim-lsp-installer/servers/perlnavigator/init.lua @@ -0,0 +1,20 @@ +local server = require "nvim-lsp-installer.server" +local path = require "nvim-lsp-installer.path" +local npm = require "nvim-lsp-installer.installers.npm" + +return function(name, root_dir) + return server.Server:new { + name = name, + root_dir = root_dir, + languages = { "perl" }, + homepage = "https://github.com/bscan/PerlNavigator", + installer = npm.packages { "perlnavigator-server" }, + default_options = { + cmd = { + "node", + path.concat { root_dir, "node_modules", "perlnavigator-server", "out", "server.js" }, + "--stdio", + }, + }, + } +end -- cgit v1.2.3-70-g09d2