Working on LSP and shit like that, Astro config is confusing, need to
learn it myself from scratch
This commit is contained in:
parent
5e821a4d61
commit
dc3e319f27
19 changed files with 400 additions and 18 deletions
42
lua/user/telescope.lua
Normal file
42
lua/user/telescope.lua
Normal file
|
@ -0,0 +1,42 @@
|
|||
return {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
commit = "40c31fdde93bcd85aeb3447bb3e2a3208395a868",
|
||||
dependencies = {
|
||||
{ "nvim-telescope/telescope-fzf-native.nvim", enabled = vim.fn.executable "make" == 1, build = "make" },
|
||||
},
|
||||
cmd = "Telescope",
|
||||
opts = function()
|
||||
local actions = require "telescope.actions"
|
||||
local get_icon = require("astronvim.utils").get_icon
|
||||
return {
|
||||
defaults = {
|
||||
prompt_prefix = string.format("%s ", get_icon "Search"),
|
||||
selection_caret = string.format("%s ", get_icon "Selected"),
|
||||
path_display = { "truncate" },
|
||||
sorting_strategy = "ascending",
|
||||
layout_config = {
|
||||
horizontal = {
|
||||
prompt_position = "top",
|
||||
preview_width = 0.55,
|
||||
},
|
||||
vertical = {
|
||||
mirror = false,
|
||||
},
|
||||
width = 0.87,
|
||||
height = 0.80,
|
||||
preview_cutoff = 120,
|
||||
},
|
||||
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-n>"] = actions.cycle_history_next,
|
||||
["<C-p>"] = actions.cycle_history_prev,
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
n = { ["q"] = actions.close },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue