diff --git a/lua/haelnorr/lazy/telescope.lua b/lua/haelnorr/lazy/telescope.lua index 185e353..bf7a120 100644 --- a/lua/haelnorr/lazy/telescope.lua +++ b/lua/haelnorr/lazy/telescope.lua @@ -1,30 +1,31 @@ return { - "nvim-telescope/telescope.nvim", + "nvim-telescope/telescope.nvim", - tag = "0.1.5", + tag = "0.1.5", - dependencies = { - "nvim-lua/plenary.nvim" - }, + dependencies = { + "nvim-lua/plenary.nvim", + }, - config = function() - require('telescope').setup({}) + config = function() + require("telescope").setup({ + defaults = { layout_strategy = "vertical" }, + }) - local builtin = require('telescope.builtin') - vim.keymap.set('n', 'pf', builtin.find_files, {}) - vim.keymap.set('n', '', builtin.git_files, {}) - vim.keymap.set('n', 'pws', function() - local word = vim.fn.expand("") - builtin.grep_string({ search = word }) - end) - vim.keymap.set('n', 'pWs', function() - local word = vim.fn.expand("") - builtin.grep_string({ search = word }) - end) - vim.keymap.set('n', 'ps', function() - builtin.grep_string({ search = vim.fn.input("Grep > ") }) - end) - vim.keymap.set('n', 'vh', builtin.help_tags, {}) - end + local builtin = require("telescope.builtin") + vim.keymap.set("n", "pf", builtin.find_files, {}) + vim.keymap.set("n", "", builtin.git_files, {}) + vim.keymap.set("n", "pws", function() + local word = vim.fn.expand("") + builtin.grep_string({ search = word }) + end) + vim.keymap.set("n", "pWs", function() + local word = vim.fn.expand("") + builtin.grep_string({ search = word }) + end) + vim.keymap.set("n", "ps", function() + builtin.grep_string({ search = vim.fn.input("Grep > ") }) + end) + vim.keymap.set("n", "vh", builtin.help_tags, {}) + end, } -