radiant.nvim/lua/core/keybinds.lua

39 lines
1.6 KiB
Lua
Raw Normal View History

2024-01-16 20:37:03 +00:00
local wk = require("which-key")
wk.add({
{ "<leader>.", ":e ", desc = "Edit File", silent = false },
2024-08-27 23:38:22 +01:00
{ "<leader>b", group = "buffers" },
{ "<leader>bc", "<cmd>BufferClose!<cr>", desc = "Close" },
{ "<leader>bd", "<cmd>BufferDelete!<cr>", desc = "Delete" },
2024-08-27 23:38:22 +01:00
{ "<leader>e", group = "editor" },
{ "<leader>ec", "<cmd>noh<cr>", desc = "Clear Search" },
2024-08-27 23:38:22 +01:00
{ "<leader>f", group = "file" },
{ "<leader>fa", "<cmd>Telescope find_files hidden=true search_dirs=~<cr>", desc = "Find Hidden (~)" },
{ "<leader>fe", ":e ", desc = "Edit File", silent = false },
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find File (~)" },
{ "<leader>fg", "<cmd>Telescope live_grep<cr>", desc = "Find Word" },
{ "<leader>fp", "<cmd>Telescope find_files hidden=true<cr>", desc = "Find File" },
{ "<leader>fs", "<cmd>:w!<cr>", desc = "Force Write" },
{ "<leader>fw", "<cmd>:w<cr>", desc = "Write" },
2024-08-27 23:38:22 +01:00
{ "<leader>g", group = "git" },
{ "<leader>gg", "<cmd>Neogit<cr>", desc = "Neogit" },
2024-08-27 23:38:22 +01:00
{ "<leader>r", group = "tree" },
{ "<leader>rf", "<cmd>NvimTreeFocus<cr>", desc = "Focus" },
{ "<leader>rt", "<cmd>NvimTreeToggle<cr>", desc = "Toggle" },
2024-08-27 23:38:22 +01:00
{ "<leader>t", group = "tabs" },
{ "<leader>th", "<cmd>BufferMovePrevious<cr>", desc = "Move Previous" },
{ "<leader>tj", "<cmd>BufferPrevious<cr>", desc = "Previous" },
{ "<leader>tk", "<cmd>BufferNext<cr>", desc = "Next" },
{ "<leader>tl", "<cmd>BufferMoveNext<cr>", desc = "Move Next" },
{ "<leader>tn", "<cmd>tabnew<cr>", desc = "New Tab" },
2024-08-27 23:38:22 +01:00
{ "<leader>l", group = "lazy" },
{ "<leader>lu", "<cmd>Lazy update<cr>", desc = "Update Plugins" },
})