all repos

init.lua @ 965118a89ae26e97f6d26468ab57a053f68fd57b

my nvim config
2 files changed, 17 insertions(+), 5 deletions(-)
update telescope theme
Author: neoteny ss2316544@gmail.com
Committed at: 2022-01-09 23:12:09 +0200
Parent: 7f4d3a8
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" }, }, }