[NVIM] Update telescope settings

This commit is contained in:
Thomas Avé 2024-12-01 18:16:26 +01:00
parent 2e0c8872f4
commit 5a20c5f15f
2 changed files with 10 additions and 6 deletions

View File

@ -7,12 +7,12 @@
},
"locked": {
"lastModified": 1,
"narHash": "sha256-Dh98KL+QgJs17frZq1TMMzcnmn5Pc5NS0+d8nC6tBAY=",
"path": "/nix/store/bbjv9f31ch9yv0rc1y04wkznn5i3018h-source/home/ags",
"narHash": "sha256-cLqKFRw5I2HMWzfIolLyNVmk094KoIqt0zRdRwo7a5Y=",
"path": "/nix/store/psxky7mw7y3smgx8n4s8aj1hw2pkra93-source/home/ags",
"type": "path"
},
"original": {
"path": "/nix/store/bbjv9f31ch9yv0rc1y04wkznn5i3018h-source/home/ags",
"path": "/nix/store/psxky7mw7y3smgx8n4s8aj1hw2pkra93-source/home/ags",
"type": "path"
}
},

View File

@ -50,7 +50,11 @@ return {
},
keys = {
{ "<leader>u", require("telescope").extensions.undo.undo},
{ "<C-Space>", require("telescope.builtin").oldfiles},
{ "<C-Space>", function ()
local opts = require('telescope.themes').get_ivy({})
opts["layout_config"] = {height=0.2}
require("telescope.builtin").oldfiles(opts)
end},
{ "<C-f>", function () require"telescope.builtin".live_grep({ path_display = { 'smart' }, }) end},
{ "<C-p>", function () -- git files
local opts = require('telescope.themes').get_ivy({})
@ -60,12 +64,12 @@ return {
require"telescope.builtin".find_files(opts)
end
end},
{ "<C-o>", function () -- project files
{ "<C-S-o>", function () -- project files
local opts = require('telescope.themes').get_ivy({})
opts["layout_config"] = {height=0.2}
require"telescope.builtin".find_files(opts)
end},
{ "<C-S-o>", function () -- buffer files
{ "<C-o>", function () -- buffer files
local opts = require('telescope.themes').get_ivy({})
opts["layout_config"] = {height=0.2}
require"telescope.builtin".buffers(opts)