nvim: Fix newly linted errors

This commit is contained in:
Marty Oehme 2024-08-12 21:14:37 +02:00
parent 61d34e49c7
commit d4727a3402
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
4 changed files with 4 additions and 8 deletions

View file

@ -155,6 +155,7 @@ return {
end, { "i", "s" }),
}),
formatting = {
expandable_indicator = true,
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
-- Kind icons, removing kind text leaving only icon

View file

@ -25,7 +25,6 @@ local formatters = {
}
return {
-- formatting setup
{
"zapling/mason-conform.nvim",

View file

@ -204,11 +204,7 @@ return {
{ buffer = bufnr, desc = "Signature help" }
)
map("n", "<localleader>lo", function()
if vim.diagnostic.is_disabled(0) then
vim.diagnostic.enable(0)
else
vim.diagnostic.disable(0)
end
vim.diagnostic.enable(not vim.diagnostic.is_enabled())
end, { buffer = bufnr, desc = "Toggle Diagnostics" })
end

View file

@ -21,8 +21,8 @@ return {
return ""
-- we don't know if we have python yet, start a check
else
vim.system({ "poetry", "env", "info", "-p" }, { text = true }, function(_, exitcode)
if exitcode == 0 then
vim.system({ "poetry", "env", "info", "-p" }, { text = true }, function(obj)
if obj.code == 0 then
has_pynvim = 1
else
has_pynvim = 0