summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-15 21:15:06 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-15 21:15:06 +0900
commit74e7dd0f260daed67c60dfecec84922ba182329c (patch)
tree8ecdba94b9f573636b786ff2e9d015c7437e4823
parentb10343cdb8f33b169700d6a5d5260751a825f8ac (diff)
updates
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua1
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua9
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua2
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua2
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lsp.lua2
-rw-r--r--ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua10
6 files changed, 17 insertions, 9 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua
index 5924b91..d2bc5bb 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/core/keymaps.lua
@@ -20,6 +20,7 @@ vim.keymap.set("n", "<leader><leader>", "<cmd>e #<cr>", { desc = "Switch to last
vim.keymap.set({ "n", "v", "x", "t" }, "<leader>bd", "<cmd>:bd<cr>", { desc = "Close buffer" })
vim.keymap.set({ "n", "v", "x", "t" }, "<leader>BD", "<cmd>:bd!<cr>", { desc = "Force close buffer" })
vim.keymap.set("n", "<leader>bn", "<cmd>enew<cr>", { desc = "Open new buffer" })
+vim.keymap.set("n", "<leader>bc", "<cmd>e!<cr>", { desc = "Clear edit" })
vim.keymap.set({ "i", "x", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save current buffer" })
vim.keymap.set({ "n", "v" }, "<leader>wq", "<cmd>wq<cr>", { desc = "Save current buffer and quit" })
vim.keymap.set({ "n", "v" }, "<leader>WQ", "<cmd>wqa<cr>", { desc = "Save all buffers and quit" })
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua
index e8979c8..1daaa54 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua
@@ -16,11 +16,10 @@ return {
zindex = 20, -- The Z-index of the context window
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
})
- end,
- keys = {
+
vim.keymap.set("n", "[t", function()
require("treesitter-context").go_to_context(vim.v.count1)
- end, { silent = true, desc = "Go to context" }),
- vim.keymap.set({ "n", "v" }, "<leader>zc", "<cmd>TSContextToggle<cr>", { desc = "Toggle context" }),
- },
+ end, { silent = true, desc = "Go to context" })
+ vim.keymap.set({ "n", "v" }, "<leader>zc", "<cmd>TSContextToggle<cr>", { desc = "Toggle context" })
+ end,
}
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua
index 6f6ff48..997b1a6 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/grug-far.lua
@@ -13,7 +13,7 @@ return {
end,
keys = {
{
- "<leader>rp",
+ "<leader>rc",
function()
local grug = require("grug-far")
local ext = vim.bo.buftype == "" and vim.fn.expand("%:e")
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua
index a353118..8efb41f 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/keys.lua
@@ -103,9 +103,9 @@ return {
desc = "Which-key query lookup",
},
{
- mode = { "n", "v", "x" },
"<leader>wK",
"<cmd>WhichKey<cr>",
+ mode = { "n", "v", "x" },
desc = "Which-key all key",
},
},
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lsp.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lsp.lua
index 829eac4..c725789 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lsp.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/lsp.lua
@@ -360,11 +360,11 @@ return {
end,
keys = {
{
- mode = { "n", "v" },
"<leader>lf",
function()
require("conform").format({ async = true })
end,
+ mode = { "n", "v" },
desc = "Format buffer by lsp",
},
{
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
index 1048a1e..a48bb74 100644
--- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
+++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/wiki.lua
@@ -46,7 +46,15 @@ return {
event = "VeryLazy",
dependencies = {
"vimwiki/vimwiki",
- "powerman/vim-plugin-AnsiEsc",
+ {
+ "powerman/vim-plugin-AnsiEsc",
+ keys = {
+ { "<leader>swp", false },
+ { "<leader>rwp", false },
+ { "<leader>wp", "<Plug>SaveWinPosn", noremap = false, desc = "Save window position" },
+ { "<leader>rp", "<Plug>RestoreWinPosn", noremap = false, desc = "Restore window position" },
+ },
+ },
"majutsushi/tagbar",
"farseer90718/vim-taskwarrior",
},