From 21d6becef2645514eec2e8481ff686bf5338834d Mon Sep 17 00:00:00 2001 From: Roel de Cort Date: Sat, 13 Apr 2024 01:38:23 +0200 Subject: [PATCH] remove unneeded keymaps --- config/keymaps.nix | 120 --------------------------------------------- 1 file changed, 120 deletions(-) diff --git a/config/keymaps.nix b/config/keymaps.nix index ed5d65b..d1bb12c 100644 --- a/config/keymaps.nix +++ b/config/keymaps.nix @@ -180,12 +180,6 @@ action = "'nN'[v:searchforward]"; options = {expr = true; desc = "Prev Search Result";}; } - { - mode = ["n" "v"]; - key = "cf"; - action = "function()\n LazyVim.format({ force = true })\nend"; - options = {desc = "Format";}; - } { mode = "n"; key = "cd"; @@ -228,90 +222,6 @@ action = "diagnostic_goto(false 'WARN')"; options = {desc = "Prev Warning";}; } - { - mode = "n"; - key = "uf"; - action = "function() LazyVim.format.toggle() end"; - options = {desc = "Toggle Auto Format (Global)";}; - } - { - mode = "n"; - key = "uF"; - action = "function() LazyVim.format.toggle(true) end"; - options = {desc = "Toggle Auto Format (Buffer)";}; - } - { - mode = "n"; - key = "us"; - action = "function() LazyVim.toggle('spell') end"; - options = {desc = "Toggle Spelling";}; - } - { - mode = "n"; - key = "uw"; - action = "function() LazyVim.toggle('wrap') end"; - options = {desc = "Toggle Word Wrap";}; - } - { - mode = "n"; - key = "uL"; - action = "function() LazyVim.toggle('relativenumber') end"; - options = {desc = "Toggle Relative Line Numbers";}; - } - { - mode = "n"; - key = "ul"; - action = "function() LazyVim.toggle.number() end"; - options = {desc = "Toggle Line Numbers";}; - } - { - mode = "n"; - key = "ud"; - action = "function() LazyVim.toggle.diagnostics() end"; - options = {desc = "Toggle Diagnostics";}; - } - { - mode = "n"; - key = "uc"; - action = "function() LazyVim.toggle('conceallevel'; false; {0; conceallevel}) end"; - options = {desc = "Toggle Conceal";}; - } - { - mode = "n"; - key = "uh"; - action = "function() if vim.b.ts_highlight then vim.treesitter.stop() else vim.treesitter.start() end end"; - options = {desc = "Toggle Treesitter Highlight";}; - } - { - mode = "n"; - key = "ub"; - action = "function() LazyVim.toggle('background'; false; {'light'; 'dark'}) end"; - options = {desc = "Toggle Background";}; - } - { - mode = "n"; - key = "gg"; - action = "function() LazyVim.lazygit( { cwd = LazyVim.root.git() }) end"; - options = {desc = "Lazygit (Root Dir)";}; - } - { - mode = "n"; - key = "gG"; - action = "function() LazyVim.lazygit() end"; - options = {desc = "Lazygit (cwd)";}; - } - { - mode = "n"; - key = "gb"; - action = "LazyVim.lazygit.blame_line"; - options = {desc = "Git Blame Line";}; - } - { - mode = "n"; - key = "gf"; - action = "function()\n local git_path = vim.api.nvim_buf_get_name(0)\n LazyVim.lazygit({args = { \"-f\"; vim.trim(git_path) }})\nend"; - options = {desc = "Lazygit Current File History";}; - } { mode = "n"; key = "qq"; @@ -324,30 +234,6 @@ action = "vim.show_pos"; options = {desc = "Inspect Pos";}; } - { - mode = "n"; - key = "ft"; - action = "lazyterm"; - options = {desc = "Terminal (Root Dir)";}; - } - { - mode = "n"; - key = "fT"; - action = "function() LazyVim.terminal() end"; - options = {desc = "Terminal (cwd)";}; - } - { - mode = "n"; - key = ""; - action = "lazyterm"; - options = {desc = "Terminal (Root Dir)";}; - } - { - mode = "n"; - key = ""; - action = "lazyterm"; - options = {desc = "which_key_ignore";}; - } { mode = "t"; key = ""; @@ -384,12 +270,6 @@ action = "close"; options = {desc = "Hide Terminal";}; } - { - mode = "t"; - key = ""; - action = "close"; - options = {desc = "which_key_ignore";}; - } { mode = "n"; key = "ww";