mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
Merge commit 'f4858d42a8' as 'config/nvim'
This commit is contained in:
commit
a6d1f45fd6
36 changed files with 906 additions and 0 deletions
52
config/nvim/lua/plugin/telescope.lua
Normal file
52
config/nvim/lua/plugin/telescope.lua
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local actions = require "telescope.actions"
|
||||
|
||||
require("telescope").setup {
|
||||
defaults = {
|
||||
prompt_prefix = " ",
|
||||
selection_caret = " ",
|
||||
entry_prefix = " ",
|
||||
initial_mode = "insert",
|
||||
selection_strategy = "reset",
|
||||
sorting_strategy = "descending",
|
||||
layout_strategy = "horizontal",
|
||||
layout_config = {
|
||||
width = 0.75,
|
||||
preview_cutoff = 120,
|
||||
prompt_position = "top",
|
||||
horizontal = { mirror = false },
|
||||
vertical = { mirror = false },
|
||||
},
|
||||
file_ignore_patterns = { ".git", "node_modules", "__pycache__", "target", "env", ".bin" },
|
||||
path_display = { shorten = 5 },
|
||||
winblend = 0,
|
||||
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 = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
["<C-u>"] = false,
|
||||
|
||||
["<C-h>"] = "which_key",
|
||||
},
|
||||
n = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
require("telescope").load_extension "projects"
|
||||
end
|
||||
|
||||
return M
|
||||
Loading…
Add table
Add a link
Reference in a new issue