2 files changed,
17 insertions(+),
5 deletions(-)
jump to
| M | lua/lsp/attach.lua |
| M | lua/plugin/telescope.lua |
M
lua/lsp/attach.lua
@@ -11,7 +11,7 @@ local opts = { noremap = true, silent = true }
buf_map("K", "<cmd>lua vim.lsp.buf.hover()<CR>", opts) buf_map("gd", "<cmd>Telescope lsp_definitions<CR>", opts) buf_map("gD", "<cmd>lua vim.lsp.buf.declaration()<CR>", opts) - buf_map("gr", "<cmd>lsp_references<CR>", opts) + buf_map("gr", "<cmd>Telescope lsp_references<CR>", opts) buf_map("gi", "<cmd>Telescope lsp_implementations<CR>", opts) buf_map("gs", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts) buf_map("gl", "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", opts)
M
lua/plugin/telescope.lua
@@ -3,6 +3,7 @@
function M.setup() local actions = require "telescope.actions" local action_layout = require "telescope.actions.layout" + -- local themes = require "telescope.themes" require("telescope").setup { defaults = {@@ -27,10 +28,6 @@ border = {},
borderchars = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" }, color_devicons = true, set_env = { ["COLORTERM"] = "truecolor" }, - pickers = { - find_files = { find_command = { "fd", "--type=file", "--hidden", "--smart-case" } }, - live_grep = { only_sort_text = true }, - }, mappings = { i = { ["<esc>"] = actions.close,@@ -45,6 +42,21 @@ ["<C-k>"] = actions.move_selection_previous,
["<A-p>"] = action_layout.toggle_preview, }, }, + }, + pickers = { + find_files = { theme = "ivy" }, + live_grep = { theme = "ivy", only_sort_text = true }, + buffers = { theme = "ivy", previewer = false }, + oldfiles = { theme = "ivy" }, + keymaps = { theme = "ivy" }, + git_branches = { theme = "cursor" }, + git_commits = { theme = "cursor" }, + lsp_definitions = { theme = "cursor" }, + lsp_references = { theme = "cursor" }, + lsp_implementations = { theme = "cursor" }, + lsp_code_actions = { theme = "cursor" }, + lsp_document_symbols = { theme = "ivy" }, + reloader = { theme = "cursor" }, }, }