Skip to content

Instantly share code, notes, and snippets.

@mengwangk
Last active July 15, 2023 04:36
Show Gist options
  • Save mengwangk/2cb099ce51cf9301ba58960fd4b03e83 to your computer and use it in GitHub Desktop.
Save mengwangk/2cb099ce51cf9301ba58960fd4b03e83 to your computer and use it in GitHub Desktop.
Neovim PDE -Flutter, Kotlin, Ruby, and Other Languages
if not require("config").pde.terraform then
return {}
end
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.list_extend(opts.ensure_installed, {
"terraform",
"hcl",
})
end,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
terraformls = {},
},
},
},
{
"jose-elias-alvarez/null-ls.nvim",
opts = function(_, opts)
local null_ls = require "null-ls"
vim.list_extend(opts.sources, {
null_ls.builtins.formatting.terraform_fmt,
null_ls.builtins.diagnostics.terraform_validate,
})
end,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment