diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index a9a480a..8f81011 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -1,15 +1,7 @@ -local hooks = function(ev) - local name, kind = ev.data.spec.name, ev.data.kind - if name == 'telescope-fzf-native.nvim' and (kind == 'install' or kind == 'update') then - vim.system({ 'make' }, { cwd = ev.data.path }):wait() - end -end -vim.api.nvim_create_autocmd('PackChanged', { callback = hooks }) vim.pack.add({ "https://github.com/nvim-lua/plenary.nvim", "https://github.com/nvim-lua/telescope.nvim", - "https://github.com/nvim-telescope/telescope-fzf-native.nvim", }) -- Keymaps @@ -19,17 +11,14 @@ vim.keymap.set("n", "pb", builtin.buffers, {}) vim.keymap.set("n", "ps", builtin.live_grep, {}) vim.keymap.set("n", "pd", builtin.diagnostics, {}) --- fzf -require("telescope").load_extension("fzf") - -- telescope setup require("telescope").setup({ extensions = { fzf = { - fuzzy = true, -- false will only do exact matching + fuzzy = true, -- false will only do exact matching override_generic_sorter = true, -- override the generic sorter - override_file_sorter = true, -- override the file sorter - case_mode = "smart_case", -- or "ignore_case" or "respect_case" + override_file_sorter = true, -- override the file sorter + case_mode = "smart_case", -- or "ignore_case" or "respect_case" -- the default case_mode is "smart_case" }, },