From 12c58d90fb58cae7642364a32760165f33c93ebf Mon Sep 17 00:00:00 2001 From: Ian Griffin Date: Wed, 29 Oct 2025 18:07:11 +0800 Subject: shorten lsp.buf commands from LspBuf.. to Lb --- lua/binds.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/binds.lua') diff --git a/lua/binds.lua b/lua/binds.lua index 49ee43c..45bee3f 100644 --- a/lua/binds.lua +++ b/lua/binds.lua @@ -43,7 +43,7 @@ end for func_name, _ in pairs(lsp_buf) do if type(lsp_buf[func_name]) == "function" then -- Check if the value is a function - local command_name = 'LspBuf' .. snake_to_pascal(func_name) + local command_name = 'Lb' .. snake_to_pascal(func_name) vim.api.nvim_create_user_command( command_name, function() @@ -73,8 +73,8 @@ end -- end ]]-- -- end -- ct.map('n', 'c', 'lua toggle_background()') - ct.map('n', 'b', ':buffer') +ct.map('n', 'h', 'lua vim.lsp.buf.hover()') -- -- Commands -- -- cgit v1.3