Add search for methods and classes

This commit is contained in:
Thomas Avé 2024-11-09 16:41:56 +01:00
parent 8b15f88dc5
commit 333bd97793
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,12 @@ return {
opts["layout_config"] = {height=0.2}
require"telescope.builtin".buffers(opts)
end},
{ "<C-m>", function () -- methods / classes
local opts = require('telescope.themes').get_ivy({})
opts["layout_config"] = {height=0.2}
opts["symbols"] = { "class", "method", "function" }
require("telescope.builtin").lsp_document_symbols(opts)
end},
{ "<C-S-f>", function () -- fuzzy search
require"telescope.builtin".grep_string({
path_display = { 'smart' },