summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPasi Bergman <[email protected]>2021-08-05 23:42:19 +0300
committerGitHub <[email protected]>2021-08-06 01:12:19 +0430
commite93724d5f6607e876a60c946b8f59c4b3c61c215 (patch)
tree97489438c5447bebe141178477edc98f50be518f
parent9f3510286423ed700f3a2e04be02b95d93158a5c (diff)
[Feature] Add PowerShell language server support (#1244)
-rw-r--r--ftplugin/ps1.lua3
-rw-r--r--lua/default-config.lua15
2 files changed, 17 insertions, 1 deletions
diff --git a/ftplugin/ps1.lua b/ftplugin/ps1.lua
new file mode 100644
index 00000000..6d388496
--- /dev/null
+++ b/ftplugin/ps1.lua
@@ -0,0 +1,3 @@
+require("lsp").setup "ps1"
+
+vim.cmd [[setlocal ts=4 sw=4]]
diff --git a/lua/default-config.lua b/lua/default-config.lua
index 021eab06..c4b3155c 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -1235,7 +1235,7 @@ lvim.lang = {
},
},
gdscript = {
- formatter = {},
+ formatters = {},
linters = {},
lsp = {
provider = "gdscript",
@@ -1251,6 +1251,19 @@ lvim.lang = {
},
},
},
+ ps1 = {
+ formatters = {},
+ linters = {},
+ lsp = {
+ provider = "powershell_es",
+ setup = {
+ bundle_path = "",
+ on_attach = common_on_attach,
+ on_init = common_on_init,
+ capabilities = common_capabilities,
+ },
+ },
+ },
}
require("keymappings").config()