From 5a20c5f15fcbed83683bd6e6e68575c785d7025a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sun, 1 Dec 2024 18:16:26 +0100 Subject: [PATCH] [NVIM] Update telescope settings --- flake.lock | 6 +++--- home/nvim/files/lua/plugins/telescope.lua | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 67794b4..3b249e2 100644 --- a/flake.lock +++ b/flake.lock @@ -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" } }, diff --git a/home/nvim/files/lua/plugins/telescope.lua b/home/nvim/files/lua/plugins/telescope.lua index 2da5194..097a090 100644 --- a/home/nvim/files/lua/plugins/telescope.lua +++ b/home/nvim/files/lua/plugins/telescope.lua @@ -50,7 +50,11 @@ return { }, keys = { { "u", require("telescope").extensions.undo.undo}, - { "", require("telescope.builtin").oldfiles}, + { "", function () + local opts = require('telescope.themes').get_ivy({}) + opts["layout_config"] = {height=0.2} + require("telescope.builtin").oldfiles(opts) + end}, { "", function () require"telescope.builtin".live_grep({ path_display = { 'smart' }, }) end}, { "", function () -- git files local opts = require('telescope.themes').get_ivy({}) @@ -60,12 +64,12 @@ return { require"telescope.builtin".find_files(opts) end end}, - { "", function () -- project files + { "", function () -- project files local opts = require('telescope.themes').get_ivy({}) opts["layout_config"] = {height=0.2} require"telescope.builtin".find_files(opts) end}, - { "", function () -- buffer files + { "", function () -- buffer files local opts = require('telescope.themes').get_ivy({}) opts["layout_config"] = {height=0.2} require"telescope.builtin".buffers(opts)