feat(nvim): More leader mappings and text objects

This commit is contained in:
js0ny 2025-01-12 22:36:49 +00:00
parent aeec1ce5c7
commit 073c60f07d
17 changed files with 264 additions and 130 deletions

View file

@ -3,6 +3,17 @@ return {
config = function()
require("telescope").setup({
defaults = {
prompt_prefix = "",
selection_caret = " ",
entry_prefix = " ",
layout_config = { -- https://github.com/NvChad/NvChad/blob/v2.5/lua/nvchad/configs/telescope.lua
horizontal = {
prompt_position = "top",
preview_width = 0.55,
},
width = 0.87,
height = 0.80,
},
mappings = {
n = {
["n"] = "move_selection_next",
@ -11,6 +22,7 @@ return {
["r"] = "preview_scrolling_down",
["a"] = "preview_scrolling_left",
["s"] = "preview_scrolling_right",
["q"] = require("telescope.actions").close,
},
},
},