Formatting and diagnostics for Puppet in Neovim #727
-
Hi everyone 👋 I've started learning about configuration management using Puppet. Puppet uses configuration files that (I think) use the file extension I also use null-ls.nvim for LSP support in Neovim. I believe that null-ls has builtin support for Puppet. I'm just unsure how to configure Neovim to give me syntax highlighting and linting/diagnostics for Puppet files. Has anyone set this up? If so, can anyone point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Syntax highlighting isn't something we support yet, but it looks like we have sources for diagnostics and formatting using local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.diagnostics.puppet_lint,
null_ls.builtins.formatting.puppet_lint,
},
}) |
Beta Was this translation helpful? Give feedback.
-
@jose-elias-alvarez or @pauljacobson, just a noob question here? Where would I need to add this snippet to make this thing work on local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.diagnostics.puppet_lint,
null_ls.builtins.formatting.puppet_lint,
},
}) |
Beta Was this translation helpful? Give feedback.
Syntax highlighting isn't something we support yet, but it looks like we have sources for diagnostics and formatting using
puppet-lint
. You can see the README and the built-in documentation to learn how to set them up and use them, but the minimal config you'll need to register them is this: