shorten lsp.buf commands from LspBuf.. to Lb
This commit is contained in:
@@ -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', '<Leader>c', '<cmd>lua toggle_background()<CR>')
|
||||
|
||||
ct.map('n', '<Leader>b', ':buffer<Space><C-z>')
|
||||
ct.map('n', '<Leader>h', '<cmd>lua vim.lsp.buf.hover()<CR>')
|
||||
--
|
||||
-- Commands
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user