summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <[email protected]>2021-07-27 12:27:56 -0400
committerChris <[email protected]>2021-07-27 12:27:56 -0400
commit5d204a469174efd97c8f8738d0addd0953c8e143 (patch)
tree01d40adc7cbe04bf964f426d673684a29879f652
parent2b877ee53e3432736ed2e41a987ab4d05d638876 (diff)
basic puppet support
-rw-r--r--ftplugin/puppet.lua1
-rw-r--r--ftplugin/thing.pp0
-rw-r--r--lua/default-config.lua14
3 files changed, 15 insertions, 0 deletions
diff --git a/ftplugin/puppet.lua b/ftplugin/puppet.lua
new file mode 100644
index 00000000..f8521762
--- /dev/null
+++ b/ftplugin/puppet.lua
@@ -0,0 +1 @@
+require("lsp").setup "puppet"
diff --git a/ftplugin/thing.pp b/ftplugin/thing.pp
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/ftplugin/thing.pp
diff --git a/lua/default-config.lua b/lua/default-config.lua
index 0cd4639c..3029e47a 100644
--- a/lua/default-config.lua
+++ b/lua/default-config.lua
@@ -538,6 +538,20 @@ lvim.lang = {
},
},
},
+ puppet = {
+ formatter = {
+ exe = "",
+ args = {},
+ },
+ linters = {},
+ lsp = {
+ provider = "puppet",
+ setup = {
+ on_attach = require("lsp").common_on_attach,
+ capabilities = require("lsp").common_capabilities(),
+ },
+ },
+ },
javascript = {
-- @usage can be prettier or eslint
formatter = {