This commit is contained in:
h 2026-06-23 14:45:30 -04:00
parent 0f64debfdd
commit 4ab847b117
5 changed files with 86 additions and 9 deletions

View File

@ -1,2 +1,4 @@
# dots
broken stuff has broken stuff in it :)

View File

@ -1 +1,3 @@
tex/beamerthemedispboard.sty
markdown-preview needs an extra dependency which breaks lazy

View File

@ -69,7 +69,7 @@ local lsp_confs = {
},
},
jedi_language_server = {
filetypes = { "python", "sage.python" },
filetypes = { "python", "sage.python", "sage" },
},
gopls = {},
dartls = {},
@ -234,7 +234,7 @@ vim.api.nvim_create_autocmd(
callback = function()
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" and
vim.bo.filetype ~= "qf" and vim.bo.filetype ~= "bib" and vim.bo.filetype ~= "" and vim.bo.filetype ~= "pdf"
and vim.bo.filetype ~= "conf" and vim.bo.filetype ~= "TelescopePrompt" and vim.bo.filetype ~= "lazy" and vim.bo.filetype ~= "lazy_backdrop" and vim.bo.filetype ~= "TelescopeResults" then
and vim.bo.filetype ~= "conf" and vim.bo.filetype ~= "TelescopePrompt" and vim.bo.filetype ~= "lazy" and vim.bo.filetype ~= "lazy_backdrop" and vim.bo.filetype ~= "TelescopeResults" and vim.bo.filetype ~= "snacks_terminal" and vim.bo.filetype ~= "NvimTree" and vim.bo.filetype ~= "neo-tree" and vim.bo.filetype ~= "oil" and vim.bo.filetype ~= "minifiles" and vim.bo.filetype ~= "netrw" and vim.bo.filetype ~= "snacks_picker_list" and vim.bo.filetype ~= "codex" then
vim.cmd([[ :COQnow -s ]])
end
end
@ -270,7 +270,7 @@ vim.api.nvim_create_autocmd('FileType', {
callback = function()
if vim.bo.filetype ~= "plaintex" and vim.bo.filetype ~= "tex" and vim.bo.filetype ~= "latex" and
vim.bo.filetype ~= "qf" and vim.bo.filetype ~= "bib" and vim.bo.filetype ~= "" and vim.bo.filetype ~= "pdf"
and vim.bo.filetype ~= "conf" and vim.bo.filetype ~= "TelescopePrompt" and vim.bo.filetype ~= "lazy" and vim.bo.filetype ~= "lazy_backdrop" and vim.bo.filetype ~= "TelescopeResults" and vim.bo.filetype ~= "netrw" and vim.bo.filetype ~= "html.mustache" and vim.bo.filetype ~= "mustache" then
and vim.bo.filetype ~= "conf" and vim.bo.filetype ~= "TelescopePrompt" and vim.bo.filetype ~= "lazy" and vim.bo.filetype ~= "lazy_backdrop" and vim.bo.filetype ~= "TelescopeResults" and vim.bo.filetype ~= "netrw" and vim.bo.filetype ~= "html.mustache" and vim.bo.filetype ~= "mustache" and vim.bo.filetype ~= "sage" and vim.bo.filetype ~= "sage.python" and vim.bo.filetype ~= "snacks_terminal" and vim.bo.filetype ~= "NvimTree" and vim.bo.filetype ~= "neo-tree" and vim.bo.filetype ~= "oil" and vim.bo.filetype ~= "minifiles" and vim.bo.filetype ~= "netrw" and vim.bo.filetype ~= "snacks_picker_list" and vim.bo.filetype ~= "codex" then
vim.treesitter.start()
vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()'
vim.wo[0][0].foldmethod = 'expr'

View File

@ -35,9 +35,8 @@ return {
"nvim-lua/plenary.nvim",
},
config = function()
require("lean").setup({
opts = { mappings = true }
})
import("lean")
vim.g.lean_config = { opts = { mappings = true } }
end,
},
@ -55,14 +54,14 @@ return {
opts = {
highlight = {
enable = true,
disable = { "ipkg", "markdown", "md" }
disable = { "sage", "sage.python", "ipkg", "markdown", "md" }
},
indent = {
enable = true,
disable = { "markdown", "md" }
disable = { "sage", "sage.python", "markdown", "md" }
},
ensure_installed = "all",
ignore_install = { "ipkg", "markdown", "md" },
ignore_install = { "sage", "sage.python", "ipkg", "markdown", "md" },
},
},
@ -383,4 +382,74 @@ return {
os.getenv("HOME") .. "/.cache/wal/colors.css"
end,
},
{
'kkrampis/codex.nvim',
lazy = true,
cmd = { 'Codex', 'CodexToggle' }, -- Optional: Load only on command execution
keys = {
{
'<leader>cc', -- Change this to your preferred keybinding
function() require('codex').toggle() end,
desc = 'Toggle Codex popup or side-panel',
mode = { 'n', 't' }
},
},
opts = {
keymaps = {
toggle = nil, -- Keybind to toggle Codex window (Disabled by default, watch out for conflicts)
quit = '<C-q>', -- Keybind to close the Codex window (default: Ctrl + q)
}, -- Disable internal default keymap (<leader>cc -> :CodexToggle)
border = 'rounded', -- Options: 'single', 'double', or 'rounded'
width = 0.8, -- Width of the floating window (0.0 to 1.0)
height = 0.8, -- Height of the floating window (0.0 to 1.0)
model = nil, -- Optional: pass a string to use a specific model (e.g., 'o3-mini')
autoinstall = true, -- Automatically install the Codex CLI if not found
panel = false, -- Open Codex in a side-panel (vertical split) instead of floating window
use_buffer = false, -- Capture Codex stdout into a normal buffer instead of a terminal buffer
},
},
{
"coder/claudecode.nvim",
dependencies = { "folke/snacks.nvim" },
config = true,
-- `cmd` lets lazy.nvim create command stubs that load the plugin on first use,
-- so `:ClaudeCode` and friends work on a fresh start. Without it, a keys-only
-- spec defers loading until a <leader>a* mapping is pressed and the commands
-- would not exist yet.
cmd = {
"ClaudeCode",
"ClaudeCodeFocus",
"ClaudeCodeSelectModel",
"ClaudeCodeAdd",
"ClaudeCodeSend",
"ClaudeCodeTreeAdd",
"ClaudeCodeStatus",
"ClaudeCodeStart",
"ClaudeCodeStop",
"ClaudeCodeOpen",
"ClaudeCodeClose",
"ClaudeCodeDiffAccept",
"ClaudeCodeDiffDeny",
"ClaudeCodeCloseAllDiffs",
},
keys = {
{ "<leader>a", nil, desc = "AI/Claude Code" },
{ "<leader>ac", "<cmd>ClaudeCode<cr>", desc = "Toggle Claude" },
{ "<leader>af", "<cmd>ClaudeCodeFocus<cr>", desc = "Focus Claude" },
{ "<leader>ar", "<cmd>ClaudeCode --resume<cr>", desc = "Resume Claude" },
{ "<leader>aC", "<cmd>ClaudeCode --continue<cr>", desc = "Continue Claude" },
{ "<leader>am", "<cmd>ClaudeCodeSelectModel<cr>", desc = "Select Claude model" },
{ "<leader>ab", "<cmd>ClaudeCodeAdd %<cr>", desc = "Add current buffer" },
{ "<leader>as", "<cmd>ClaudeCodeSend<cr>", mode = "v", desc = "Send to Claude" },
{
"<leader>as",
"<cmd>ClaudeCodeTreeAdd<cr>",
desc = "Add file",
ft = { "NvimTree", "neo-tree", "oil", "minifiles", "netrw", "snacks_picker_list" },
},
-- Diff management
{ "<leader>aa", "<cmd>ClaudeCodeDiffAccept<cr>", desc = "Accept diff" },
{ "<leader>ad", "<cmd>ClaudeCodeDiffDeny<cr>", desc = "Deny diff" },
},
}
}

View File

@ -8,6 +8,10 @@ elif [[ "$1" == "mirror-dp" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --mode 1920x1080 --output DP-2 --off --output DP-3 --off --output HDMI-1 --off --same-as eDP-1
elif [[ "$1" == "mirror-all" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --mode 1920x1080 --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode 1920x1080 --same-as eDP-1
elif [[ "$1" == "hdmi" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode "$2" --pos 1920x0 --rotate normal
elif [[ "$1" == "dp" ]]; then
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --mode "$2" --pos 1920x0 --rotate normal --output DP-2 --off --output DP-3 --off --output HDMI-1 --off
else
xrandr --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output HDMI-1 --mode "$1" --pos 1920x0 --rotate normal
fi