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" }),
|
end, { "i", "s" }),
|
||||||
}),
|
}),
|
||||||
formatting = {
|
formatting = {
|
||||||
|
expandable_indicator = true,
|
||||||
fields = { "kind", "abbr", "menu" },
|
fields = { "kind", "abbr", "menu" },
|
||||||
format = function(entry, vim_item)
|
format = function(entry, vim_item)
|
||||||
-- Kind icons, removing kind text leaving only icon
|
-- Kind icons, removing kind text leaving only icon
|
||||||
|
|
|
@ -25,7 +25,6 @@ local formatters = {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
-- formatting setup
|
-- formatting setup
|
||||||
{
|
{
|
||||||
"zapling/mason-conform.nvim",
|
"zapling/mason-conform.nvim",
|
||||||
|
|
|
@ -204,11 +204,7 @@ return {
|
||||||
{ buffer = bufnr, desc = "Signature help" }
|
{ buffer = bufnr, desc = "Signature help" }
|
||||||
)
|
)
|
||||||
map("n", "<localleader>lo", function()
|
map("n", "<localleader>lo", function()
|
||||||
if vim.diagnostic.is_disabled(0) then
|
vim.diagnostic.enable(not vim.diagnostic.is_enabled())
|
||||||
vim.diagnostic.enable(0)
|
|
||||||
else
|
|
||||||
vim.diagnostic.disable(0)
|
|
||||||
end
|
|
||||||
end, { buffer = bufnr, desc = "Toggle Diagnostics" })
|
end, { buffer = bufnr, desc = "Toggle Diagnostics" })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ return {
|
||||||
return ""
|
return ""
|
||||||
-- we don't know if we have python yet, start a check
|
-- we don't know if we have python yet, start a check
|
||||||
else
|
else
|
||||||
vim.system({ "poetry", "env", "info", "-p" }, { text = true }, function(_, exitcode)
|
vim.system({ "poetry", "env", "info", "-p" }, { text = true }, function(obj)
|
||||||
if exitcode == 0 then
|
if obj.code == 0 then
|
||||||
has_pynvim = 1
|
has_pynvim = 1
|
||||||
else
|
else
|
||||||
has_pynvim = 0
|
has_pynvim = 0
|
||||||
|
|
Loading…
Reference in a new issue