error fixes

This commit is contained in:
sankalp committed 2024-01-12 10:40:16 +05:45
1 parent a2483dc586
commit b99ff7cd6b
24 files changed
+112 -175

No files matched your search

@@ -1,5 +1,12 @@
return {
{ import = "lazyvim.plugins.extras.lang.go" },
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "golangcil-lint" })
end,
},
{
"ray-x/go.nvim",
dependencies = {
@@ -10,7 +17,31 @@ return {
opts = {},
event = { "LazyFile" },
ft = { "go", "gomod" },
build = ':lua require("go.install").update_all_sync()',
build = function()
require("go.install").update_all_sync()
end,
},
{
"mfussenegger/nvim-lint",
opts = function(_, opts)
local function add_linters(tbl)
for ft, linters in pairs(tbl) do
if opts.linters_by_ft[ft] == nil then
opts.linters_by_ft[ft] = linters
else
vim.list_extend(opts.linters_by_ft[ft], linters)
end
end
end
add_linters({
["go"] = { "golangcilint" },
["gomod"] = { "golangcilint" },
["gowork"] = { "golangcilint" },
})
return opts
end,
},
{
"luckasRanarison/nvim-devdocs",