Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6c6f3e1
misc nvim changes
tbanh-hs Apr 22, 2026
2fc2470
forget opencode
tbanh-hs Apr 22, 2026
d81a5cf
re-add opencode
tbanh-hs Apr 22, 2026
75bce4a
misc
tbanh-hs Apr 22, 2026
9c0ce06
yazi: update colors for custom everforest
tbanh-hs Apr 22, 2026
a8fb8a7
sidekick: add keybindings to <leader>A and <M-?>
tbanh-hs Apr 22, 2026
a50d4a7
sidekick/opencode - update keymaps controlled by vim.g.ai_cli
tbanh-hs Apr 23, 2026
63ccef1
sidekick: fix opencode cli rendering after terminal hide/show
tbanh-hs Apr 23, 2026
b29669f
fix(temp): refactoring.nvim clear debug, also use latest LazyVim whic…
tbanh-hs Apr 23, 2026
caaad27
fix: refactoring.nvim's print_var and print_loc for js/ts/tsx
tbanh-hs Apr 23, 2026
3f98a98
sidekick: sort keybindings
tbanh-hs Apr 24, 2026
8aad956
use builtin vim.lsp.codelens, delete symbol-usage.nvim
tbanh-hs Apr 24, 2026
d43df43
tmux: set tmux-256color to properly render italics and gui color
tbanh-hs Apr 24, 2026
044ab56
remove opencode.nvim
tbanh-hs Apr 24, 2026
f36eace
vtsls: add removeUUnused code action
tbanh-hs Apr 25, 2026
6250158
refactoring: revert to older commit and use previous configuration
tbanh-hs Apr 25, 2026
37b1c7f
misc
tbanh-hs Apr 25, 2026
bc95c26
replace refactoring.nvim with debugprint.nvim
tbanh-hs Apr 25, 2026
a63fb97
move <leader>n group definition into obsidian plugin
tbanh-hs Apr 25, 2026
e9a0bd9
register clipboard yank keymaps via which-key
tbanh-hs Apr 25, 2026
7aa33b7
tweak which-key sort order and lowercase group labels
tbanh-hs Apr 25, 2026
5efd0b3
yanky: also disable <leader>p in visual mode
tbanh-hs Apr 25, 2026
3946363
tiny-code-action: silence noisy preview errors and add keymaps
tbanh-hs Apr 25, 2026
fafcc5d
misc
tbanh-hs Apr 25, 2026
51913b6
replace debugprint with nvim-chainsaw for logging
tbanh-hs Apr 26, 2026
5c89576
gh-dash: update theme colors to everforest
tbanh-hs Apr 28, 2026
d929ac3
remove vim.o.scrollback, which causes an issue with scrolling up in n…
tbanh-hs Apr 28, 2026
21cb3bd
remove logging's statuslihne icon
tbanh-hs Apr 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions dot_config/gh-dash/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,20 +114,20 @@ theme:
compact: false # compact table rows
colors:
text:
primary: "#cdcecf"
secondary: "#71839b"
inverted: "#131a24"
faint: "#71839b"
warning: "#dbc074"
success: "#81b29a"
error: "#c94f6d"
actor: "#63cdcf"
primary: "#d3c6aa"
secondary: "#83c092"
inverted: "#2b3339"
faint: "#7393b3"
warning: "#dbbc7f"
success: "#83c092"
error: "#e67e80"
actor: "#7fbbb3"
background:
selected: "#2b3b51"
selected: "#2E383C"
border:
primary: "#2b3b51"
secondary: "#393b44"
faint: "#2b3b51"
primary: "#2E383C"
secondary: "#4e565c"
faint: "#2E383C"

pager:
diff: ""
Expand Down
1 change: 0 additions & 1 deletion dot_config/nvim/lazyvim.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"lazyvim.plugins.extras.dap.nlua",
"lazyvim.plugins.extras.editor.dial",
"lazyvim.plugins.extras.editor.outline",
"lazyvim.plugins.extras.editor.refactoring",
"lazyvim.plugins.extras.formatting.prettier",
"lazyvim.plugins.extras.lang.astro",
"lazyvim.plugins.extras.lang.clangd",
Expand Down
8 changes: 2 additions & 6 deletions dot_config/nvim/lua/config/autocmds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ end, {
usercmd("Btop", function()
if vim.fn.executable("btop") == 1 then
Snacks.terminal.toggle("btop", {
win = vim.g.floating_terminal and {
style = "float",
} or {
win = {
style = "terminal",
width = 0,
height = 0,
Expand All @@ -88,9 +86,7 @@ end, {
usercmd("Gh", function()
if vim.fn.executable("gh") == 1 then
Snacks.terminal.toggle({ "gh", "dash" }, {
win = vim.g.floating_terminal and {
style = "float",
} or {
win = {
style = "terminal",
width = 0,
height = 0,
Expand Down
19 changes: 17 additions & 2 deletions dot_config/nvim/lua/config/keymaps.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua

local wk = require("which-key")
local set = vim.keymap.set
local del = vim.keymap.del
local opts = { noremap = true, silent = true }
Expand Down Expand Up @@ -43,8 +44,22 @@ set("c", [[\\-]], [[\(.\{-}\)]], { desc = "Inserts \\(.{-})" })
set("x", "/", "<Esc>/\\%V", opts)

-- Yank to clipboard
set({ "n", "v" }, "<leader>y", [["+y]], vim.tbl_extend("force", opts, { desc = "[Y]ank to clipboard" }))
set({ "n", "v" }, "<leader>Y", [["+y$]], vim.tbl_extend("force", opts, { desc = "[Y]ank to end of line to clipboard" }))
wk.add({
{
"<leader>y",
[["+y]],
desc = "yank to clipboard",
mode = { "n", "v" },
icon = { icon = " " },
},
{
"<leader>Y",
[["+y$]],
desc = "yank to end of line to clipboard",
mode = { "n", "v" },
icon = { icon = " " },
},
})

-- exit terminal mode while in terminal
set("t", "<C-Space>[", "<C-\\><C-N>", vim.tbl_extend("force", opts, { desc = "terminal escape terminal mode" }))
Expand Down
3 changes: 3 additions & 0 deletions dot_config/nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ vim.opt.shadafile = shadafile

vim.o.autoread = true

-- LSP
vim.lsp.codelens.enable()

-- Personal - controls floating terminal for various plugins.
vim.g.floating_terminal = false

Expand Down
130 changes: 0 additions & 130 deletions dot_config/nvim/lua/plugins/ai/opencode.lua

This file was deleted.

112 changes: 99 additions & 13 deletions dot_config/nvim/lua/plugins/ai/sidekick.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
local keymap_prefix = "<leader>a"
local toggle = "<M-/>"

return {
"folke/sidekick.nvim",
opts = {
Expand All @@ -11,11 +14,38 @@ return {
enabled = vim.fn.executable("tmux") == 1,
},
win = {
wo = {
scrolloff = 0, -- prevent global scrolloff from shifting terminal view on toggle
},
-- Force opencode to redraw when sidekick re-opens the terminal window.
-- Without this, the window-pty association is lost during hide() and the
-- TUI never receives SIGWINCH, so stale content from the previous render
-- stays visible until the user manually resizes the split.
config = function(terminal)
local orig = terminal.open_win
terminal.open_win = function(self)
orig(self)
vim.defer_fn(function()
if self:win_valid() and self:is_running() then
local w = vim.api.nvim_win_get_width(self.win)
local h = vim.api.nvim_win_get_height(self.win)
pcall(vim.fn.jobresize, self.job, w - 1, h)
pcall(vim.fn.jobresize, self.job, w, h)
end
end, 30)
end
end,
layout = vim.g.floating_terminal and "float" or "right", ---@type "float"|"left"|"bottom"|"top"|"right"
float = {
width = 0.6,
height = 0.6,
},
-- Options used when layout is "left"|"bottom"|"top"|"right"
---@type vim.api.keyset.win_config
split = {
width = 0.5, -- set to 0 for default split width
height = 0, -- set to 0 for default split height
},
},
},
nes = {
Expand All @@ -33,24 +63,80 @@ return {
},
},
},
-- Disable cli keybindings, only keeping nes
keys = function()
require("which-key").add({
{
keymap_prefix,
group = "ai/sidekick",
},
})

return {
-- nes
{ "<tab>", LazyVim.cmp.map({ "ai_nes" }, "<tab>"), mode = { "n" }, expr = true },

-- cli
{
toggle,
function()
require("sidekick.cli").toggle()
end,
desc = "Sidekick Toggle",
mode = { "n", "t", "i", "x" },
},
{
keymap_prefix .. "d",
function()
require("sidekick.cli").close()
end,
desc = "Detach a CLI Session",
},
{
keymap_prefix .. "f",
function()
require("sidekick.cli").focus()
end,
desc = "Sidekick Focus",
mode = { "n", "t", "i", "x" },
},
{
keymap_prefix .. "g",
function()
require("sidekick.cli").send({ msg = "{file}" })
end,
desc = "Send File",
},
{
keymap_prefix .. "p",
function()
require("sidekick.cli").prompt()
end,
mode = { "n", "x" },
desc = "Sidekick Select Prompt",
},
{
keymap_prefix .. "s",
function()
require("sidekick.cli").select({ filter = { installed = true } })
end,
desc = "Select CLI",
},
{
keymap_prefix .. "t",
function()
require("sidekick.cli").send({ msg = "{this}" })
end,
mode = { "x", "n" },
desc = "Send This",
},
{
"<c-.>",
false,
keymap_prefix .. "v",
function()
require("sidekick.cli").send({ msg = "{selection}" })
end,
mode = { "x" },
desc = "Send Visual Selection",
},
}
end,
-- keys = {
-- {
-- "<M-/>",
-- function()
-- require("sidekick.cli").toggle()
-- end,
-- desc = "Sidekick Toggle",
-- mode = { "n", "t", "i", "x" },
-- },
-- },
}
1 change: 0 additions & 1 deletion dot_config/nvim/lua/plugins/editor/autopairs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ return {
"codecompanion",
"grug-far",
"markdown",
"opencode",
"snacks_input",
"snacks_picker_input",
"spectre_panel",
Expand Down
Loading