From c7c24cd03bb55db975909083c03e13d4de95ee94 Mon Sep 17 00:00:00 2001 From: davidpkj Date: Wed, 15 Mar 2023 14:13:27 +0100 Subject: Changed up nvim --- neovim/.config/nvim/lua/plugins/telescope.lua | 27 ++------------------------ neovim/.config/nvim/lua/plugins/treesitter.lua | 2 +- 2 files changed, 3 insertions(+), 26 deletions(-) (limited to 'neovim/.config/nvim/lua/plugins') diff --git a/neovim/.config/nvim/lua/plugins/telescope.lua b/neovim/.config/nvim/lua/plugins/telescope.lua index 6d3be34..2b34bb2 100644 --- a/neovim/.config/nvim/lua/plugins/telescope.lua +++ b/neovim/.config/nvim/lua/plugins/telescope.lua @@ -1,9 +1,8 @@ local actions = require("telescope.actions") -local finders = require("telescope.builtin") require("telescope").setup({ defaults = { - prompt_prefix = "> ", + prompt_prefix = "ยป ", initial_mode = "insert", sorting_strategy = "ascending", layout_config = { @@ -17,6 +16,7 @@ require("telescope").setup({ [""] = actions.toggle_selection + actions.move_selection_next, [""] = actions.send_selected_to_qflist, [""] = actions.send_to_qflist, + [""] = actions.which_key, }, }, }, @@ -29,26 +29,3 @@ require("telescope").setup({ }, }, }) - -local Telescope = setmetatable({}, { - __index = function(_, k) - if vim.bo.filetype == "NvimTree" then - vim.cmd.wincmd("l") - end - return finders[k] - end, -}) - -vim.keymap.set("n", "", function() - local ok = pcall(Telescope.git_files, { show_untracked = true }) - if not ok then - Telescope.find_files() - end -end) - --- Get :help at the speed of light -vim.keymap.set("n", "H", Telescope.help_tags) --- Search for string -vim.keymap.set("n", "s", Telescope.live_grep) --- Fuzzy find changed files in git -vim.keymap.set("n", "c", Telescope.git_status) diff --git a/neovim/.config/nvim/lua/plugins/treesitter.lua b/neovim/.config/nvim/lua/plugins/treesitter.lua index f05cca9..8c9f60c 100644 --- a/neovim/.config/nvim/lua/plugins/treesitter.lua +++ b/neovim/.config/nvim/lua/plugins/treesitter.lua @@ -118,7 +118,7 @@ require("nvim-treesitter.configs").setup({ -- nvim-treesitter/nvim-treesitter-refactor refactor = { highlight_definitions = { enable = true }, - -- highlight_current_scope = { enable = false }, + -- highlight_current_scope = { enable = true }, }, context_commentstring = { enable = true, -- cgit v1.2.3