diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-19 18:34:13 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-19 18:34:13 +0900 |
| commit | 307fceea38b7352a79b0bdb87025a34b76973867 (patch) | |
| tree | 382eb3e6a11973bc2c6ba33eee14d43ec2a9566b /ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua | |
| parent | b66f68b8c014a3041c936ee9de1b57db5bcb50fb (diff) | |
updates
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua deleted file mode 100644 index be0c957..0000000 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua +++ /dev/null @@ -1,114 +0,0 @@ -return { - { - "nvzone/showkeys", - cmd = "ShowkeysToggle", - opts = {}, - keys = { - { "<leader>zk", "<cmd>ShowkeysToggle<cr>", desc = "Toggle keys" }, - }, - }, - { - "folke/which-key.nvim", - event = "VeryLazy", - cmd = "WhichKey", - dependencies = { "echasnovski/mini.icons", "nvim-tree/nvim-web-devicons" }, - opts = { - preset = "classic", -- false | "classic" | "modern" | "helix" - keys = { - scroll_down = "<c-e>", - scroll_up = "<c-y>", - }, - }, - config = function(_, opts) - local wk = require("which-key") - wk.setup(opts) - wk.add({ - { - mode = { "n", "v" }, - { "g", group = "Goto" }, - { "g`", group = "Marks" }, - { "g'", group = "Marks" }, - { "gs", group = "Search/Surround" }, - { "gx", desc = "Open with system app" }, - { "s", group = "Surround/Search & replace on line" }, - { "S", group = "Surround/Search & replace in file" }, - { "z", group = "Fold" }, - { "`", group = "Marks" }, - { "'", group = "Marks" }, - { '"', group = "Registers" }, - { "]", group = "Next" }, - { "]]", group = "Next" }, - { "[", group = "Prev" }, - { "[[", group = "Prev" }, - { "=", group = "Line paste" }, - { "<C-w>", group = "Windows" }, - { "<leader>", group = "Leader" }, - { "<leader>a", group = "Ascii" }, - { - "<leader>b", - group = "Buffer", - expand = function() - return require("which-key.extras").expand.buf() - end, - }, - { "<leader>B", group = "Buffer (force)" }, - { "<leader>C", group = "Goto realpath" }, - { "<leader>d", group = "Delete" }, - { "<leader>D", group = "Delete (blackhole)" }, - { "<leader>e", group = "Explorer" }, - { "<leader>i", group = "Inspect" }, - { "<leader>l", group = "Location" }, - { "<leader>L", group = "Lazy" }, - { "<leader>M", group = "Mason" }, - { "<leader>o", group = "Open" }, - { "<leader>p", group = "Paste" }, - { "<leader>P", group = "Paste" }, - { "<leader>q", group = "Quit" }, - { "<leader>rn", group = "Rename" }, - { "<leader>sk", group = "Keys" }, - { "<leader>S", group = "Save/Source" }, - { "<leader>w", group = "Which-key" }, - { "<leader>W", group = "Save all" }, - { "<leader>z", group = "Toggle" }, - { "<leader><tab>", group = "Tabs" }, - { "<localleader>", group = "Local Leader (bookmarks)" }, - { "<localleader><leader>", group = "Bookmarks (explorer)" }, - { "<localleader><localleader>", group = "Bookmarks (mini)" }, - { "<localleader>t", group = "Task" }, - }, - { - mode = { "n", "v", "x" }, - { "gw", desc = "Visible in window" }, - { "g%", desc = "Match backward" }, - { "g;", desc = "Last change" }, - { "<leader>Q", group = "Quit all" }, - }, - }) - end, - keys = { - { - "<leader>?", - function() - require("which-key").show({ global = false }) - end, - desc = "Buffer local keymaps (which-key)", - }, - { - "<leader>wk", - function() - local ok, input = pcall(vim.fn.input, "WhichKey: ") - if ok and input ~= "" then - vim.cmd("WhichKey " .. input) - end - end, - desc = "Which-key query lookup", - }, - { - "<leader>wK", - "<cmd>WhichKey<cr>", - mode = { "n", "v", "x" }, - desc = "Which-key all key", - }, - }, - }, -} |
