dotfiles/.config/nvim/lua/plugins/none-ls.lua

15 lines
357 B
Lua
Raw Normal View History

2023-10-06 06:13:04 -07:00
return {
"nvimtools/none-ls.nvim",
optional = true,
opts = function(_, opts)
if type(opts.sources) == "table" then
local nls = require("null-ls")
vim.list_extend(opts.sources, {
nls.builtins.code_actions.gomodifytags,
nls.builtins.code_actions.impl,
nls.builtins.formatting.goimports,
})
end
end,
}