more hotkeys!

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-12-20 22:41:52 -06:00
parent b5bbfe57a3
commit 6cf68f8680
2 changed files with 20 additions and 1 deletions

View file

@ -114,6 +114,20 @@ require("util").keymaps({
{ "<C-u>", "<C-u>zz", desc = "Vertical half page up and center cursor" }, { "<C-u>", "<C-u>zz", desc = "Vertical half page up and center cursor" },
{ "J", "mzJ`z", desc = "Move line below onto this line" }, { "J", "mzJ`z", desc = "Move line below onto this line" },
{ "<S-Tab>", "<C-o>", desc = "Go back <C-o>" }, { "<S-Tab>", "<C-o>", desc = "Go back <C-o>" },
{
"]d",
function()
vim.diagnostic.goto_next()
end,
desc = "Go to next diagnostic",
},
{
"[d",
function()
vim.diagnostic.goto_prev()
end,
desc = "Go to next diagnostic",
},
-- ============= -- =============
-- VISUAL -- VISUAL

View file

@ -1,7 +1,12 @@
local function lsp_clients() local function lsp_clients()
local clients = {} local clients = {}
for _, client in pairs(vim.lsp.buf_get_clients(0)) do for _, client in pairs(vim.lsp.buf_get_clients(0)) do
clients[#clients + 1] = client.name local name = client.name
-- TODO revisit this doesn't work
if not client.initialized then
name = name .. " (loading)"
end
clients[#clients + 1] = name
end end
table.sort(clients) table.sort(clients)