Skip to content

Commit

Permalink
Add perlpls LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalDevil committed Oct 10, 2023
1 parent 8c43046 commit 41d0338
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lua/lsp/config/perlpls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local util = require("lsp.util")
local opts = util.default_configs()

opts.filetypes = { "perl" }
opts.settings = {
perl = {
perlcritic = {
enabled = false,
},
syntax = {
enabled = true,
},
},
}
opts.single_file_support = true

return util.set_on_setup(opts)
2 changes: 2 additions & 0 deletions lua/lsp/setup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ end
local lsp_servers = require("lsp.check")
lsp_servers = arr_extend(lsp_servers, {
"csharp_ls",
"perlpls",
"racket_langserver",
"rust_analyzer",
"v_analyzer",
Expand Down Expand Up @@ -66,6 +67,7 @@ local servers = {
jsonls = require("lsp.config.jsonls"),
kotlin_language_server = require("lsp.config.kotlin_language_server"),
lua_ls = require("lsp.config.lua_ls"),
perlpls = require("lsp.config.perlpls"),
pylyzer = require("lsp.config.pylyzer"),
racket_langserver = require("lsp.config.racket_langserver"),
rust_analyzer = require("lsp.config.rust_analyzer"),
Expand Down

0 comments on commit 41d0338

Please sign in to comment.