diff options
-rw-r--r-- | init.vim | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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") |