aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-06-08 17:55:52 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-06-08 17:55:52 +0300
commitf83813eb42d9609fbee9267c0df7c51f8f0fe909 (patch)
tree366ce00411c37c82d5c7bd561b2b3a446fa0606d /dotfiles/.config/nvim
parentcca0488895f330ffb026535b76b4c01ba52eb2ea (diff)
downloadvimrice-f83813eb42d9609fbee9267c0df7c51f8f0fe909.tar.gz
vimrice-f83813eb42d9609fbee9267c0df7c51f8f0fe909.zip
lsp: bind for document symbol search
Diffstat (limited to 'dotfiles/.config/nvim')
-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 38cbc2f..ba5441c 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -269,7 +269,8 @@ call plug#end()
nmap <silent> <leader>n <cmd>lua vim.lsp.buf.rename()<CR>
nmap <silent> <leader>b <cmd>lua vim.lsp.buf.format()<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> <leader>qw <cmd>lua vim.lsp.buf.workspace_symbol()<CR>
+ nmap <silent> <leader>qd <cmd>lua vim.lsp.buf.document_symbol()<CR>
nmap <silent> <leader>l <cmd>lua vim.diagnostic.setloclist()<CR>
nmap <silent> ]g <cmd>lua vim.diagnostic.goto_next()<CR>
nmap <silent> [g <cmd>lua vim.diagnostic.goto_prev()<CR>