From 3688268437e39df53557c39f952309df23579075 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Mon, 3 Jan 2022 00:53:03 -0500 Subject: [PATCH] Fix C-w in telescope --- home/nvim/lua/init.lua | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/home/nvim/lua/init.lua b/home/nvim/lua/init.lua index 2773c27..250a737 100644 --- a/home/nvim/lua/init.lua +++ b/home/nvim/lua/init.lua @@ -137,12 +137,6 @@ vim.cmd([[autocmd BufWritePre *.nix lua vim.lsp.buf.formatting_sync()]]) require("packer").startup(function() use({ "ms-jpq/coq_nvim", branch = "coq" }) -- main one use({ "ms-jpq/coq.artifacts", branch = "artifacts" }) -- 9000+ Snippets - use({ - "AckslD/nvim-neoclip.lua", - config = function() - require("neoclip").setup() - end, - }) end) ------------------------------------------------------------------------------- @@ -265,9 +259,6 @@ require("hound").setup({ }) vim.api.nvim_set_keymap("n", "hs", ":Hound", { silent = true, noremap = true }) --- neoclip -require('telescope').load_extension('neoclip') - -- vim-markdown vim.g.vim_markdown_override_foldtext = 0 vim.g.vim_markdown_no_default_key_mappings = 1 @@ -283,6 +274,17 @@ vim.g["prettier#autoformat"] = 1 vim.g.gitblame_enabled = 0 -- telescope +require "telescope".setup { + defaults = { + mappings = { + i = { + [""] = function() + vim.cmd [[normal! bcw]] + end, + }, + }, + } +} vim.api.nvim_set_keymap("n", "ff", "Telescope find_files find_command=rg,--ignore,--hidden,--files,-g,!.git prompt_prefix=🔍", { silent = true, noremap = true }) vim.api.nvim_set_keymap("n", "fg", "Telescope live_grep", { silent = true, noremap = true })