From 4ab847b117e65228b0c77882fe7d8666cd8af4ba Mon Sep 17 00:00:00 2001 From: h Date: Tue, 23 Jun 2026 14:45:30 -0400 Subject: [PATCH] stuff --- README.md | 2 + broken_stuff.md | 2 + nvim-lazy-profile/lua/lsp.lua | 6 +- nvim-lazy-profile/lua/plugins/init.lua | 81 ++++++++++++++++++++++++-- scripts/uzui/monitor_connect | 4 ++ 5 files changed, 86 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a7ab61f..f3cd1a1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # dots +broken stuff has broken stuff in it :) + diff --git a/broken_stuff.md b/broken_stuff.md index 8902047..c8650a0 100644 --- a/broken_stuff.md +++ b/broken_stuff.md @@ -1 +1,3 @@ tex/beamerthemedispboard.sty + +markdown-preview needs an extra dependency which breaks lazy diff --git a/nvim-lazy-profile/lua/lsp.lua b/nvim-lazy-profile/lua/lsp.lua index 0340b56..73a89db 100644 --- a/nvim-lazy-profile/lua/lsp.lua +++ b/nvim-lazy-profile/lua/lsp.lua @@ -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' diff --git a/nvim-lazy-profile/lua/plugins/init.lua b/nvim-lazy-profile/lua/plugins/init.lua index 606bc53..3024f39 100644 --- a/nvim-lazy-profile/lua/plugins/init.lua +++ b/nvim-lazy-profile/lua/plugins/init.lua @@ -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 = { + { + '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 = '', -- Keybind to close the Codex window (default: Ctrl + q) + }, -- Disable internal default keymap (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 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 = { + { "a", nil, desc = "AI/Claude Code" }, + { "ac", "ClaudeCode", desc = "Toggle Claude" }, + { "af", "ClaudeCodeFocus", desc = "Focus Claude" }, + { "ar", "ClaudeCode --resume", desc = "Resume Claude" }, + { "aC", "ClaudeCode --continue", desc = "Continue Claude" }, + { "am", "ClaudeCodeSelectModel", desc = "Select Claude model" }, + { "ab", "ClaudeCodeAdd %", desc = "Add current buffer" }, + { "as", "ClaudeCodeSend", mode = "v", desc = "Send to Claude" }, + { + "as", + "ClaudeCodeTreeAdd", + desc = "Add file", + ft = { "NvimTree", "neo-tree", "oil", "minifiles", "netrw", "snacks_picker_list" }, + }, + -- Diff management + { "aa", "ClaudeCodeDiffAccept", desc = "Accept diff" }, + { "ad", "ClaudeCodeDiffDeny", desc = "Deny diff" }, + }, + } } diff --git a/scripts/uzui/monitor_connect b/scripts/uzui/monitor_connect index 7e60fb8..f503e20 100755 --- a/scripts/uzui/monitor_connect +++ b/scripts/uzui/monitor_connect @@ -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