Created
July 14, 2023 13:34
-
-
Save mengwangk/db64758034585304cd76e8c852241e11 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.docker then | |
return {} | |
end | |
return { | |
{ | |
"nvim-treesitter/nvim-treesitter", | |
opts = function(_, opts) | |
if type(opts.ensure_installed) == "table" then | |
vim.list_extend(opts.ensure_installed, { "dockerfile" }) | |
end | |
end, | |
}, | |
{ | |
"jose-elias-alvarez/null-ls.nvim", | |
opts = function(_, opts) | |
local nls = require "null-ls" | |
opts.sources = opts.sources or {} | |
vim.list_extend(opts.sources, { | |
nls.builtins.diagnostics.hadolint, | |
}) | |
end, | |
dependencies = { | |
"mason.nvim", | |
opts = function(_, opts) | |
opts.ensure_installed = opts.ensure_installed or {} | |
vim.list_extend(opts.ensure_installed, { "hadolint" }) | |
end, | |
}, | |
}, | |
{ | |
"neovim/nvim-lspconfig", | |
opts = { | |
servers = { | |
dockerls = {}, | |
docker_compose_language_service = {}, | |
}, | |
}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment