summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.vim b/init.vim
index 3b4c141..bca3c9d 100644
--- a/init.vim
+++ b/init.vim
@@ -329,6 +329,8 @@ noremap <3-X1Mouse> <C-O>
noremap <M-S-ScrollWheelRight> <C-LeftMouse>
+noremap <M-]> <cmd>Telescope tags<cr>
+
menu 0.400 PopUp.Find\ References <Cmd>norm g[r<CR>
menu 0.400 PopUp.Find\ Implementers <Cmd>norm g[i<CR>
menu PopUp.Split :split<cr>
@@ -490,7 +492,7 @@ lua << EOF
function run_format_code()
local lsps = vim.lsp.buf_get_clients()
- if lsps and #lsps > 0 then
+ if lsps then
vim.lsp.buf.format()
else
vim.cmd("FormatCode")