From 5d204a469174efd97c8f8738d0addd0953c8e143 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 27 Jul 2021 12:27:56 -0400 Subject: [PATCH] basic puppet support --- ftplugin/puppet.lua | 1 + ftplugin/thing.pp | 0 lua/default-config.lua | 14 ++++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 ftplugin/puppet.lua create mode 100644 ftplugin/thing.pp 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 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 = {