From 671d852df2ca0b1acfae7081aefc8b4aba45d871 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Wed, 14 Feb 2024 23:50:51 +0100 Subject: [PATCH] nvim telescope --- nvim/init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index 1022585..a1ff7d1 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -433,13 +433,16 @@ require("lazy").setup({ local map = vim.keymap.set local opts = { noremap = true } local actions = require("telescope.actions") - map("n", "", "Telescope find_files", opts) - map("n", "", "Telescope git_files", opts) - map("n", "", ':lua require("telescope").extensions.live_grep_args.live_grep_args()', opts) + map("n", "", "Telescope find_files layout_config={width=0.99}", opts) + map("n", "", "Telescope git_files layout_config={width=0.99}", opts) + map("n", "", "Telescope diagnostics layout_strategy=vertical layout_config={width=0.99}", opts) + map("n", "", "Telescope live_grep layout_strategy=vertical layout_config={width=0.99}", opts) map("n", "", "Telescope filetypes", opts) map("n", "", "Telescope search_history", opts) + map("n", "", "Telescope colorscheme layout_config={width=0.5} enable_preview=1", opts) require("telescope").setup({ defaults = { + layout_config = { horizontal = { width = 0.95 } }, mappings = { i = { [""] = actions.close, @@ -966,7 +969,6 @@ map("n", "", "Mason", { noremap = true }) map("n", "", "LspInfo", { noremap = true }) map("n", "", "checkt", { noremap = true }) map("n", "", "TodoQuickFix", { noremap = true }) -map("n", "", 'lua require("telescope.builtin").colorscheme({enable_preview=1})', { noremap = true }) -- cursor color