Skip to content

Commit

Permalink
feat(stuff): which key spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnehrig committed Dec 31, 2024
1 parent 3fe20c8 commit 49f94a7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 78 deletions.
35 changes: 0 additions & 35 deletions lua/config/core/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -244,40 +244,6 @@ M.diag = {
},
}

M.gram = {
n = {
{
"<leader>ggf",
"<Plug>(grammarous-fixall)",
{ desc = "Grammer Fix All", silent = false },
},
{
"<leader>ggo",
"<Plug>(grammarous-open-info-window)",
{ desc = "Grammer Open", silent = false },
},
{
"<leader>ggn",
"<Plug>(grammarous-move-to-next-error)",
{ desc = "Grammer Go Next", silent = false },
},
{
"<leader>ggp",
"<Plug>(grammarous-move-to-previous-error)",
{ desc = "Grammer Go Prev", silent = false },
},
{
"<leader>ggi",
"<Plug>(grammarous-fixit)",
{ desc = "Grammer Fix It", silent = false },
},
{
"<leader>ggc",
"<cmd>GrammarousCheck<CR>",
{ desc = "Grammer Check", silent = false },
},
},
}

M.run = {
v = {
Expand Down Expand Up @@ -329,7 +295,6 @@ M.map = {
M.util,
M.tree,
M.diag,
M.gram,
}

M.vscode_file = {
Expand Down
57 changes: 15 additions & 42 deletions lua/config/plugins/configs/which/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,21 @@ M.init = function()
return
end

which.setup({})
which.register({
g = {
name = "Lsp and Grammar",
},
f = {
name = "File",
},
u = {
name = "Utils",
},
d = {
name = "Debug",
},
q = {
name = "QuickfixList",
},
h = {
name = "Gitsigns",
},
l = {
name = "LocList",
},
m = {
name = "Make Test",
},
o = {
name = "Orgmode",
},
["]"] = {
name = "TS Textobj",
},
["c"] = {
name = "Commented",
},
t = {
name = "Tab Nav",
},
b = {
name = "Build/Run/Test",
},
}, { prefix = "<leader>" })
which.add({
{ "<leader>]", group = "TS Textobj" },
{ "<leader>b", group = "Build/Run/Test" },
{ "<leader>c", group = "Commented" },
{ "<leader>d", group = "Debug" },
{ "<leader>f", group = "File" },
{ "<leader>g", group = "Lsp and Grammar" },
{ "<leader>h", group = "Gitsigns" },
{ "<leader>l", group = "LocList" },
{ "<leader>m", group = "Make Test" },
{ "<leader>o", group = "Orgmode" },
{ "<leader>q", group = "QuickfixList" },
{ "<leader>t", group = "Tab Nav" },
{ "<leader>u", group = "Utils" },
})
end

return M
3 changes: 2 additions & 1 deletion lua/config/plugins/modules/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ M.ts = {
["nvim-treesitter/nvim-treesitter"] = {},
--- INFO: indenter
["yioneko/nvim-yati"] = {
event = "VeryLazy",
dependencies = "nvim-treesitter/nvim-treesitter",
},
--- INFO: doc generation
Expand All @@ -72,7 +73,7 @@ M.ts = {
--- INFO: treesitter aware commenting
["winston0410/commented.nvim"] = {
keys = {
{ "<space>cc", mode = { "n", "v" }, desc = "Comment out line" },
{ "gcc", mode = { "n", "v" }, desc = "Comment out line" },
},
dependencies = "nvim-treesitter/nvim-treesitter",
config = function()
Expand Down

0 comments on commit 49f94a7

Please sign in to comment.