this repo has no description

nvim: some cleanup

seth.computer b25833be f8aaa189

verified
+14 -238
-3
nvim/init.lua
··· 9 9 10 10 -- Uses which-key plugin 11 11 require("config.keys") 12 - 13 - -- Claude integration 14 - require("config.claude").setup()
+13 -22
nvim/lazy-lock.json
··· 1 1 { 2 - "aerial.nvim": { "branch": "master", "commit": "5e687b5a14004fa2dd9eccbee042b96869fe1557" }, 2 + "aerial.nvim": { "branch": "master", "commit": "535f643b0c3e642465d3cf37b96fc54ddd3b2c1e" }, 3 3 "auto-dark-mode.nvim": { "branch": "master", "commit": "e300259ec777a40b4b9e3c8e6ade203e78d15881" }, 4 4 "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, 5 - "cmp-nvim-lsp": { "branch": "main", "commit": "bd5a7d6db125d4654b50eeae9f5217f24bb22fd3" }, 5 + "cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" }, 6 6 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, 7 - "dressing.nvim": { "branch": "master", "commit": "2d7c2db2507fa3c4956142ee607431ddb2828639" }, 8 - "dropbar.nvim": { "branch": "master", "commit": "3460930700ca67b4590a69ac3f1d65d5f9658fb6" }, 9 - "gitlab.nvim": { "branch": "main", "commit": "e29909cd1064a7b53c3150bff49449a548dadf8d" }, 10 7 "gitlinker.nvim": { "branch": "master", "commit": "cc59f732f3d043b626c8702cb725c82e54d35c25" }, 11 - "gitsigns.nvim": { "branch": "main", "commit": "23ae90a2a52fdc9b8c50dc61d6c30ebb18521343" }, 12 - "goyo.vim": { "branch": "master", "commit": "fa0263d456dd43f5926484d1c4c7022dfcb21ba9" }, 13 - "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, 14 - "lazydev.nvim": { "branch": "main", "commit": "258d2a5ef4a3e3d6d9ba9da72c9725c53e9afcbd" }, 15 - "mason-lspconfig.nvim": { "branch": "main", "commit": "f760507df8c49a4bf46a4d12e1fc616797508979" }, 16 - "mason.nvim": { "branch": "main", "commit": "b3689a41dd77e5294498dba9757fb22cc80cbebd" }, 17 - "mini.nvim": { "branch": "main", "commit": "6bd3a01aaf7d248aea1b78aacdd5d44bffa002c1" }, 18 - "neo-tree.nvim": { "branch": "v3.x", "commit": "e345ad863aa0255cb472ff414f6f10a9ceafac15" }, 8 + "gitsigns.nvim": { "branch": "main", "commit": "130beacf8a51f00aede9c31064c749136679a321" }, 9 + "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, 10 + "mason-lspconfig.nvim": { "branch": "main", "commit": "4cfe411526a7a99c18281135e8b4765ae6330d15" }, 11 + "mason.nvim": { "branch": "main", "commit": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800" }, 12 + "neo-tree.nvim": { "branch": "v3.x", "commit": "f3df514fff2bdd4318127c40470984137f87b62e" }, 19 13 "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, 20 - "nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" }, 14 + "nvim-cmp": { "branch": "main", "commit": "d97d85e01339f01b842e6ec1502f639b080cb0fc" }, 21 15 "nvim-comment": { "branch": "main", "commit": "e9ac16ab056695cad6461173693069ec070d2b23" }, 22 16 "nvim-config-local": { "branch": "main", "commit": "990f3e35e0fba8fb83012d7e85f9a6a77de7f87f" }, 23 17 "nvim-lsp-file-operations": { "branch": "master", "commit": "9744b738183a5adca0f916527922078a965515ed" }, 24 - "nvim-lspconfig": { "branch": "master", "commit": "336b388c272555d2ae94627a50df4c2f89a5e257" }, 18 + "nvim-lspconfig": { "branch": "master", "commit": "d696e36d5792daf828f8c8e8d4b9aa90c1a10c2a" }, 25 19 "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, 26 - "nvim-web-devicons": { "branch": "master", "commit": "f6b0920f452bfd7595ee9a9efe5e1ae78e0e2997" }, 20 + "nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" }, 27 21 "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, 28 - "render-markdown.nvim": { "branch": "main", "commit": "686af1e08c47a72e1f969ba2b40a424446d882cf" }, 29 - "rose-pine": { "branch": "main", "commit": "72a04c4065345b51b56aed4859ea1d884f734097" }, 30 - "schemastore.nvim": { "branch": "main", "commit": "fea7b3eb30d6e7261529ae7e8e94bf717f9c428f" }, 31 - "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, 22 + "rose-pine": { "branch": "main", "commit": "cf2a288696b03d0934da713d66c6d71557b5c997" }, 23 + "schemastore.nvim": { "branch": "main", "commit": "60f1b3d1bde39396cdfb1362dd207970ec57e731" }, 32 24 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, 33 25 "toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" }, 34 - "vim-prisma": { "branch": "main", "commit": "95c5b25066efb34c75bce78698baa371fe0ee7c2" }, 35 26 "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }, 36 - "which-key.nvim": { "branch": "main", "commit": "904308e6885bbb7b60714c80ab3daf0c071c1492" } 27 + "which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" } 37 28 }
+1 -1
nvim/lua/config/base.lua
··· 22 22 -- Disable wrapping, except for buffers of certain filetype 23 23 vim.opt.wrap = false 24 24 vim.api.nvim_create_autocmd({ "FileType" }, { 25 - pattern = { "markdown", "gitlab", "aichat", "qf", "" }, 25 + pattern = { "markdown", "qf", "" }, 26 26 callback = function() 27 27 vim.opt_local.wrap = true 28 28 vim.opt_local.linebreak = true
-148
nvim/lua/config/claude.lua
··· 1 - local helpers = require('utils.claude_helpers') 2 - local diagnostic_helpers = require('utils.diagnostic_helpers') 3 - 4 - local M = {} 5 - 6 - -- Display Claude response in new buffer 7 - local function show_claude_response(response) 8 - -- Create new buffer and switch to it 9 - vim.cmd('vnew') 10 - local buf = vim.api.nvim_get_current_buf() 11 - 12 - -- Set buffer content 13 - vim.api.nvim_buf_set_lines(buf, 0, -1, false, vim.split(response, '\n')) 14 - 15 - -- Set buffer options 16 - vim.bo[buf].modifiable = false 17 - vim.bo[buf].filetype = 'markdown' 18 - vim.bo[buf].buftype = '' -- Make it a normal buffer 19 - vim.bo[buf].bufhidden = 'hide' -- Hide instead of wipe 20 - 21 - -- Set buffer name 22 - vim.api.nvim_buf_set_name(buf, 'Claude Response') 23 - end 24 - 25 - -- Main Claude command handler 26 - local function claude_command(opts) 27 - if not helpers.claude_available() then 28 - vim.notify("Claude binary not found. Please install claude-code CLI.", vim.log.levels.ERROR) 29 - return 30 - end 31 - 32 - local user_input = table.concat(opts.fargs, ' ') 33 - if user_input == '' then 34 - vim.notify("Please provide a request for Claude", vim.log.levels.WARN) 35 - return 36 - end 37 - 38 - local file_context = helpers.get_file_context() 39 - local selection = helpers.get_selection_info(opts.range > 0, opts.line1, opts.line2) 40 - local prompt = helpers.build_prompt(user_input, file_context, selection, false, nil) 41 - 42 - vim.notify("Asking Claude...", vim.log.levels.INFO) 43 - 44 - helpers.execute_claude(prompt, function(response) 45 - vim.schedule(function() 46 - show_claude_response(response) 47 - end) 48 - end) 49 - end 50 - 51 - -- Claude edit command handler 52 - local function claude_edit_command(opts) 53 - if not helpers.claude_available() then 54 - vim.notify("Claude binary not found. Please install claude-code CLI.", vim.log.levels.ERROR) 55 - return 56 - end 57 - 58 - local user_input = table.concat(opts.fargs, ' ') 59 - if user_input == '' then 60 - vim.notify("Please provide a request for Claude", vim.log.levels.WARN) 61 - return 62 - end 63 - 64 - local file_context = helpers.get_file_context() 65 - local selection = helpers.get_selection_info(opts.range > 0, opts.line1, opts.line2) 66 - 67 - if not selection then 68 - vim.notify("ClaudeEdit requires a selection. Select text first or use a range.", vim.log.levels.WARN) 69 - return 70 - end 71 - 72 - local prompt = helpers.build_prompt(user_input, file_context, selection, true, nil) 73 - 74 - vim.notify("Claude is editing your selection...", vim.log.levels.INFO) 75 - 76 - helpers.execute_claude(prompt, function(response) 77 - vim.schedule(function() 78 - helpers.replace_selection(selection, response) 79 - vim.notify("Selection replaced by Claude", vim.log.levels.INFO) 80 - end) 81 - end) 82 - end 83 - 84 - -- Claude fix diagnostics command handler 85 - local function claude_fix_command(opts) 86 - if not helpers.claude_available() then 87 - vim.notify("Claude binary not found. Please install claude-code CLI.", vim.log.levels.ERROR) 88 - return 89 - end 90 - 91 - local file_context = helpers.get_file_context() 92 - local selection = helpers.get_selection_info(opts.range > 0, opts.line1, opts.line2) 93 - 94 - if not selection then 95 - vim.notify("ClaudeFix requires a selection. Select text first or use a range.", vim.log.levels.WARN) 96 - return 97 - end 98 - 99 - -- Get diagnostics for the selected range 100 - local diagnostics = diagnostic_helpers.get_range_diagnostics(0, selection.start_line, selection.end_line) 101 - 102 - if not diagnostic_helpers.has_diagnostics(0, selection.start_line, selection.end_line) then 103 - vim.notify("No diagnostic issues found in selected range.", vim.log.levels.INFO) 104 - return 105 - end 106 - 107 - local diagnostic_info = diagnostic_helpers.format_diagnostics_for_prompt(diagnostics) 108 - local user_input = table.concat(opts.fargs, ' ') 109 - if user_input == '' then 110 - user_input = "Fix the diagnostic issues listed above" 111 - end 112 - 113 - local prompt = helpers.build_prompt(user_input, file_context, selection, false, diagnostic_info) 114 - 115 - vim.notify("Claude is analyzing and fixing diagnostic issues...", vim.log.levels.INFO) 116 - 117 - helpers.execute_claude_with_tools(prompt, function(response) 118 - vim.schedule(function() 119 - vim.notify("Claude diagnostic fix completed. Check the file for changes.", vim.log.levels.INFO) 120 - end) 121 - end) 122 - end 123 - 124 - -- Setup function to register commands 125 - function M.setup() 126 - -- Register :Claude command 127 - vim.api.nvim_create_user_command('Claude', claude_command, { 128 - nargs = '*', 129 - range = true, 130 - desc = 'Ask Claude for help with code context' 131 - }) 132 - 133 - -- Register :ClaudeEdit command 134 - vim.api.nvim_create_user_command('ClaudeEdit', claude_edit_command, { 135 - nargs = '*', 136 - range = true, 137 - desc = 'Ask Claude to edit selected code' 138 - }) 139 - 140 - -- Register :ClaudeFix command 141 - vim.api.nvim_create_user_command('ClaudeFix', claude_fix_command, { 142 - nargs = '*', 143 - range = true, 144 - desc = 'Ask Claude to fix diagnostic issues in selected code' 145 - }) 146 - end 147 - 148 - return M
-8
nvim/lua/plugins/ai.lua
··· 1 - return { 2 - -- { 3 - -- "github/copilot.vim", 4 - -- config = function() 5 - -- vim.g.copilot_filetypes = { markdown = false } 6 - -- end, 7 - -- }, 8 - }
-18
nvim/lua/plugins/git.lua
··· 3 3 "sindrets/diffview.nvim", 4 4 }, 5 5 { 6 - "harrisoncramer/gitlab.nvim", 7 - dependencies = { 8 - "MunifTanjim/nui.nvim", 9 - "nvim-lua/plenary.nvim", 10 - "sindrets/diffview.nvim", 11 - "stevearc/dressing.nvim", 12 - "nvim-tree/nvim-web-devicons", 13 - "rose-pine/neovim", 14 - }, 15 - enabled = true, 16 - build = function() 17 - require("gitlab.server").build(true) 18 - end, -- Builds the Go binary 19 - config = function() 20 - require("gitlab").setup() 21 - end, 22 - }, 23 - { 24 6 "ruifm/gitlinker.nvim", 25 7 opts = { 26 8 mappings = nil,
-8
nvim/lua/plugins/lsp.lua
··· 159 159 end, 160 160 }, 161 161 { 162 - "folke/lazydev.nvim", 163 - ft = "lua", -- only load on lua files 164 - opts = {}, 165 - }, 166 - { 167 - "prisma/vim-prisma", 168 - }, 169 - { 170 162 "antosha417/nvim-lsp-file-operations", 171 163 dependencies = { 172 164 "nvim-lua/plenary.nvim",
-30
nvim/lua/plugins/ui.lua
··· 1 1 return { 2 2 { "akinsho/bufferline.nvim", opts = {} }, 3 3 { 4 - "Bekaboo/dropbar.nvim", 5 - -- optional, but required for fuzzy finder support 6 - dependencies = { 7 - "nvim-telescope/telescope-fzf-native.nvim", 8 - build = "make", 9 - }, 10 - config = function() 11 - local dropbar_api = require("dropbar.api") 12 - vim.keymap.set("n", "<Leader>;", dropbar_api.pick, { desc = "Pick symbols in winbar" }) 13 - vim.keymap.set("n", "[;", dropbar_api.goto_context_start, { desc = "Go to start of current context" }) 14 - vim.keymap.set("n", "];", dropbar_api.select_next_context, { desc = "Select next context" }) 15 - end, 16 - }, 17 - { 18 4 "nvim-neo-tree/neo-tree.nvim", 19 5 branch = "v3.x", 20 6 dependencies = { ··· 68 54 "akinsho/toggleterm.nvim", 69 55 }, 70 56 { 71 - "junegunn/goyo.vim", 72 - }, 73 - { 74 57 "folke/which-key.nvim", 75 58 opts = {}, 76 59 }, 77 - { 78 - 'MeanderingProgrammer/render-markdown.nvim', 79 - dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.nvim' }, -- if you use the mini.nvim suite 80 - -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-mini/mini.icons' }, -- if you use standalone mini plugins 81 - -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons 82 - ---@module 'render-markdown' 83 - ---@type render.md.UserConfig 84 - opts = { 85 - pipe_table = { 86 - style = "normal", 87 - }, 88 - }, 89 - } 90 60 }