aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/binds.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/binds.lua')
-rw-r--r--.config/nvim/lua/binds.lua27
1 files changed, 4 insertions, 23 deletions
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", "<Leader>t", "<cmd>NvimTreeToggle<CR>")
--- toggle trouble
-map("n", "<Leader>e", "<cmd>TroubleToggle<CR>")
--- undo
+-- redo
map("n", "U", "<C-r>")
map("c", "<CR>", function()
@@ -34,21 +30,6 @@ map("i", "<RIGHT>", "<NOP>")
map("n", "<Leader>h", vim.lsp.buf.hover)
map("n", "<Leader>gd", vim.lsp.buf.definition)
-map("n", "<leader>bp", function()
- require('cokeline.mappings').pick("focus")
-end, { desc = "Pick a buffer to focus" })
-map("n", "<leader>bq", function()
- require('cokeline.mappings').pick("close")
-end, { desc = "Pick a buffer to close" })
-map("n", "<Leader>p", function ()
- require("cokeline.mappings").by_step("switch", -1)
-end, { silent = true })
-map("n", "<Leader>n", function ()
- require("cokeline.mappings").by_step("switch", 1)
-end, { silent = true })
-
-
--- local function setup_lsp_keys(_client, buffer)
--- map("<Leader>d", vim.diagnostic.open_float, "Line diagnostics")
---
--- end
+map("n", "<C-l>", function()
+ vim.fn.setreg("/", "")
+end)