diff options
author | Josh Rahm <rahm@google.com> | 2025-03-05 19:20:53 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2025-03-05 19:41:25 +0000 |
commit | 33a95d1b5ae5dca3a85888cc99e31dd0b1f27f97 (patch) | |
tree | 7a410d46e1121098bfcb1c9b4bf4398d62d8086a | |
parent | 5354735151c7eee961f2958f64ab563c8940676b (diff) | |
download | config.vim-33a95d1b5ae5dca3a85888cc99e31dd0b1f27f97.tar.gz config.vim-33a95d1b5ae5dca3a85888cc99e31dd0b1f27f97.tar.bz2 config.vim-33a95d1b5ae5dca3a85888cc99e31dd0b1f27f97.zip |
Add bindings for the sude mouse buttons and some options to the right
click menu.
-rw-r--r-- | init.vim | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -273,8 +273,23 @@ noremap Α <cmd>call OrdPrev()<cr> noremap € vib<esc>a)<esc> -lua << EOF +noremap <X2Mouse> <C-I> +noremap <2-X2Mouse> <C-I> +noremap <3-X2Mouse> <C-I> + +noremap <X1Mouse> <C-O> +noremap <2-X1Mouse> <C-O> +noremap <3-X1Mouse> <C-O> + +noremap <M-S-ScrollWheelRight> <C-LeftMouse> +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> +menu PopUp.VSplit :vsplit<cr> +menu PopUp.Close :q<cr> + +lua << EOF function open_terminal_on_directory() local buf = vim.api.nvim_get_current_buf() local bufname = vim.api.nvim_buf_get_name(buf) |