diff options
| author | Ian Griffin <migriffin@disroot.org> | 2025-10-29 18:07:11 +0800 |
|---|---|---|
| committer | Ian Griffin <migriffin@disroot.org> | 2025-10-29 18:07:11 +0800 |
| commit | 12c58d90fb58cae7642364a32760165f33c93ebf (patch) | |
| tree | 42dca35080dfbd08b4542d7ec06ee8e0c6cd6a10 | |
| parent | 23662ac758858dfa28cf0ead3ef552ac1edbd931 (diff) | |
shorten lsp.buf commands from LspBuf.. to Lb
| -rw-r--r-- | lua/binds.lua | 4 | ||||
| -rw-r--r-- | lua/misc.lua | 4 | ||||
| -rw-r--r-- | lua/plugins/10_ide.lua | 3 |
3 files changed, 7 insertions, 4 deletions
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', '<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 -- diff --git a/lua/misc.lua b/lua/misc.lua index 31f84c2..6ec31e4 100644 --- a/lua/misc.lua +++ b/lua/misc.lua @@ -39,10 +39,10 @@ vim.g.netrw_browse_split = 0 -- -- EtC. -- -vim.opt.clipboard = "unnamedplus" +-- vim.opt.clipboard = "unnamedplus" vim.opt.compatible = false vim.opt.autowrite = true -vim.opt.foldmethod = "marker" +vim.opt.foldmethod = "syntax" -- auto cd to the current file's location vim.cmd('autocmd BufEnter * silent! lcd %:p:h') -- highlighting for other langs in markdown docs diff --git a/lua/plugins/10_ide.lua b/lua/plugins/10_ide.lua index a3ec510..261aed4 100644 --- a/lua/plugins/10_ide.lua +++ b/lua/plugins/10_ide.lua @@ -93,6 +93,8 @@ return { }, }, + { 'jlcrochet/vim-razor', lazy = false }, + -- -- Language Server -- @@ -169,6 +171,7 @@ return { "html", "jsonls", "lua_ls", + "omnisharp", "phpactor", "pyright", "sqls", |
