update fold method plus fix golangci lint causing error

also add keybinds to codecompanion
This commit is contained in:
2025-06-20 11:49:38 +01:00
parent ec9a456c74
commit 76f1f2fcc1
6 changed files with 1199 additions and 17 deletions

View File

@ -1,19 +1,21 @@
return {
enable = function() -- disable lsp if wrong version installed
local enable = true
vim
.system({ 'golangci-lint', '--version' }, { text = true }, function(out)
if out.code ~= 0 then
enable = false
return
end
if out.stdout:match ' 1%.%d+%.%d+' then
enable = false
return
end
end)
:wait()
local ok, _ = pcall(function()
vim
.system({ 'golangci-lint', '--version' }, { text = true }, function(out)
if out.code ~= 0 then
enable = false
return
end
if out.stdout:match ' 1%.%d+%.%d+' then
enable = false
return
end
end)
:wait()
end)
return enable
return enable and ok
end,
}