From 72bac3930e8442faaea834724c2ef80440c505ed Mon Sep 17 00:00:00 2001 From: Revaz Nakhutsrishvili Date: Tue, 3 Sep 2024 11:02:19 +0400 Subject: add neovim config --- .config/nvim/lua/module/telescope.lua | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .config/nvim/lua/module/telescope.lua (limited to '.config/nvim/lua/module/telescope.lua') diff --git a/.config/nvim/lua/module/telescope.lua b/.config/nvim/lua/module/telescope.lua new file mode 100644 index 0000000..21869d1 --- /dev/null +++ b/.config/nvim/lua/module/telescope.lua @@ -0,0 +1,43 @@ +local telescope = require "telescope" +local builtin = require "telescope.builtin" +local actions = require "telescope.actions" + +telescope.load_extension "fzf" +telescope.setup{ + defaults = { + file_ignore_patterns = { + ".git", + "node_modules" + }, + mappings = { + i = { + [""] = actions.move_selection_next, + [""] = actions.move_selection_previous, + } + } + }, + pickers = { + find_files = { + hidden = true + }, + live_grep = { + additional_args = { "--hidden" } + }, + grep_string = { + additional_args = { "--hidden" } + }, + buffers = { + previewer = false, + mappings = { + i = { + [""] = actions.delete_buffer + } + } + }, + } +} + +vim.keymap.set("n", "ff", builtin.find_files, {}) +vim.keymap.set("n", "fg", builtin.live_grep, {}) +vim.keymap.set("n", "fb", builtin.buffers, {}) +vim.keymap.set("n", "fh", builtin.help_tags, {}) -- cgit v1.2.3-70-g09d2