From d7c66522cf365f516babcfeb1d4a2d36c3ea41af Mon Sep 17 00:00:00 2001 From: delta Date: Wed, 29 Oct 2025 16:35:38 +0100 Subject: a small refactor --- .config/nvim/lua/binds.lua | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to '.config/nvim/lua/binds.lua') diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua index 55da905..4bcebb0 100644 --- a/.config/nvim/lua/binds.lua +++ b/.config/nvim/lua/binds.lua @@ -1,11 +1,7 @@ local map = vim.keymap.set -- local color_converter = require "color_converter" --- toggle nvim-tree -map("n", "t", "NvimTreeToggle") --- toggle trouble -map("n", "e", "TroubleToggle") --- undo +-- redo map("n", "U", "") map("c", "", function() @@ -34,21 +30,6 @@ map("i", "", "") map("n", "h", vim.lsp.buf.hover) map("n", "gd", vim.lsp.buf.definition) -map("n", "bp", function() - require('cokeline.mappings').pick("focus") -end, { desc = "Pick a buffer to focus" }) -map("n", "bq", function() - require('cokeline.mappings').pick("close") -end, { desc = "Pick a buffer to close" }) -map("n", "p", function () - require("cokeline.mappings").by_step("switch", -1) -end, { silent = true }) -map("n", "n", function () - require("cokeline.mappings").by_step("switch", 1) -end, { silent = true }) - - --- local function setup_lsp_keys(_client, buffer) --- map("d", vim.diagnostic.open_float, "Line diagnostics") --- --- end +map("n", "", function() + vim.fn.setreg("/", "") +end) -- cgit v1.2.3