local map = vim.api.nvim_set_keymap -- == LSP Pickers == map('n', 'll', " Telescope ", { noremap = true, desc = "Open main telescope picket" }) map('n', '', " Telescope commands ", { noremap = true, desc = "Open main telescope picket" }) map('n', '', "lua vim.lsp.buf.code_action()", { noremap = true, desc = "Resume last pick action" }) map('n', 'lf', " lua require('telescope.builtin').find_files()", { noremap = true, desc = "Open File" }) map('n', 'ld', " lua require('telescope.builtin').lsp_definitions()", { noremap = true, desc = "Go to definition" }) map('n', 'lr', " lua require('telescope.builtin').lsp_references()", { noremap = true, desc = "List to references to word under cursor" }) map('n', 'lt', "lua require('telescope.builtin').treesitter()", { noremap = true, desc = "List symbols in workspace with treesitter" }) map('n', 'lw', "lua require('telescope.builtin').diagnostic()", { noremap = true, desc = "List diagnostic items" }) map('n', '', "lua vim.lsp.buf.code_action()", { noremap = true, desc = "Pick code action" }) map("v", "", "'<,'>lua vim.lsp.buf.code_action()", { noremap = true, desc = "Pick code action for selection" }) map('n', 'ls', "lua require('telescope.builtin').live_grep()", { noremap = true, desc = "Live search" }) -- == Misc Keybinds == map('n', 'b', "lua require('telescope.builtin').buffers()", { noremap = true, desc = "List and pick buffers" }) map('n', 'S', "Telescope persisted", { noremap = true, desc = "Select a persisted session" })