chore(nvim): fix deprecation warnings
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-06-16 12:11:14 -04:00
parent 1b22a41415
commit 638957dbb5

View file

@ -33,15 +33,21 @@ in {
tbl[v] = k; tbl[v] = k;
end end
end; end;
vim.diagnostic.is_disabled = function()
return not vim.diagnostic.is_enabled();
end;
vim.tbl_islist = function(tbl) vim.tbl_islist = function(tbl)
return vim.islist(tbl); return vim.islist(tbl);
end; end;
vim.tbl_flatten = function(tbl)
return vim.iter(tbl):flatten():totable();
end;
vim.diagnostic.is_disabled = function()
return not vim.diagnostic.is_enabled();
end;
vim.lsp.buf_get_clients = function() vim.lsp.buf_get_clients = function()
return vim.lsp.get_clients(); return vim.lsp.get_clients();
end; end;
vim.lsp.get_active_clients = function()
return vim.lsp.get_clients();
end;
-- Start completion / snippet stuff -- Start completion / snippet stuff
vim.g.coq_settings = { vim.g.coq_settings = {