File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,14 @@ local on_attach = function(_, bufnr)
427427 nmap (' gr' , require (' telescope.builtin' ).lsp_references , ' [G]oto [R]eferences' )
428428 nmap (' gI' , require (' telescope.builtin' ).lsp_implementations , ' [G]oto [I]mplementation' )
429429 nmap (' <leader>D' , vim .lsp .buf .type_definition , ' Type [D]efinition' )
430- nmap (' <leader>ds' , require (' telescope.builtin' ).lsp_document_symbols , ' [D]ocument [S]ymbols' )
430+ -- Just show classes and functions
431+ nmap (
432+ ' <leader>ds' ,
433+ function ()
434+ require (' telescope.builtin' ).lsp_document_symbols ({ ignore_symbols = { ' variable' , ' constant' } })
435+ end ,
436+ ' [D]ocument [S]ymbols'
437+ )
431438 nmap (' <leader>ws' , require (' telescope.builtin' ).lsp_dynamic_workspace_symbols , ' [W]orkspace [S]ymbols' )
432439
433440 -- See `:help K` for why this keymap
You can’t perform that action at this time.
0 commit comments