Last active
July 15, 2023 04:36
-
-
Save mengwangk/2cb099ce51cf9301ba58960fd4b03e83 to your computer and use it in GitHub Desktop.
Neovim PDE -Flutter, Kotlin, Ruby, and Other Languages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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