aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-24 13:21:15 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-10-24 13:21:15 +0300
commit967e3fd3830ceea2cfa280de061abe1bc41d70f0 (patch)
tree3450dedc8dd1b74f94a9bfd1282f5f5056df0182
parentc28be931f8bf6805bda1a79fdab76739fd4cb785 (diff)
downloadvimrice-967e3fd3830ceea2cfa280de061abe1bc41d70f0.tar.gz
vimrice-967e3fd3830ceea2cfa280de061abe1bc41d70f0.zip
Change leader to ',', add bind for symbol search
-rw-r--r--dotfiles/.config/nvim/init.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index 60fa726..5fda1b5 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -1,5 +1,5 @@
-let mapleader =" "
+let mapleader = ","
" Check if vim-plug is installed, otherwise download and install
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
@@ -244,6 +244,7 @@ call plug#end()
nmap <silent> <leader>n <cmd>lua vim.lsp.buf.rename()<CR>
nmap <silent> <leader>b <cmd>lua vim.lsp.buf.formatting()<CR>
nmap <silent> <leader>a <cmd>lua vim.lsp.buf.code_action()<CR>
+ nmap <silent> <leader>w <cmd>lua vim.lsp.buf.workspace_symbol()<CR>
nmap <silent> ]g <cmd>lua vim.diagnostic.goto_next()<CR>
nmap <silent> [g <cmd>lua vim.diagnostic.goto_prev()<CR>