nvim: Fix newly linted errors
This commit is contained in:
parent
61d34e49c7
commit
d4727a3402
4 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -25,7 +25,6 @@ local formatters = {
|
|||
}
|
||||
|
||||
return {
|
||||
|
||||
-- formatting setup
|
||||
{
|
||||
"zapling/mason-conform.nvim",
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue