xonecas.io
56101
Df

dotfiles / commit 8baa258

updates to nvim config, back to simple stuff

xonecas2026-04-30 8baa258187c9e77a9e2cdb1d2a3badee31e046a3 parent b8663b9

15 files changed

agents/AGENTS.md+0−53
@@ -1,53 +0,0 @@
1-# Global Agent Instructions
2-
3-- Be concise and less verbose
4-- No performative apologies. Don't say "sorry", "I apologize", or explain why you "should have known better". Just state what happened and move forward.
5-- Use a casual non-enterprise tone.
6-
7-## Instruction fidelity
8-
9-When the user asks for a specific change, do exactly that and nothing more.
10-
11-- Do not add extra configuration, defaults, compatibility flags, optimizations, or behavioral changes unless the user explicitly asks for them.
12-- Do not infer "helpful" additions beyond the request.
13-- If a change seems advisable but was not requested, ask first instead of doing it.
14-- Prefer the minimal implementation that satisfies the user's stated request.
15-- If the user asks for only one model / one setting / one change, configure only that.
16-
17-This is the default behavior.
18-
19-## Web research with Exa
20-
21-An Exa API key is available in the `EXA_API_KEY` environment variable.
22-Use it via curl for web search and content extraction when research
23-is needed (e.g., gathering best practices, checking recent trends,
24-reading documentation).
25-
26-**Search:**
27-```bash
28-curl -s "https://api.exa.ai/search" \
29- -H "x-api-key: $EXA_API_KEY" \
30- -H "Content-Type: application/json" \
31- -d '{
32- "query": "your search query",
33- "numResults": 10,
34- "type": "auto",
35- "contents": {"text": {"maxCharacters": 3000}}
36- }' | jq -r '.results[] | "## \(.title)\n\(.url)\n\(.text[:1500])\n---"'
37-```
38-
39-**Fetch full content from a known URL:**
40-```bash
41-curl -s "https://api.exa.ai/contents" \
42- -H "x-api-key: $EXA_API_KEY" \
43- -H "Content-Type: application/json" \
44- -d '{
45- "ids": ["https://example.com/article"],
46- "text": {"maxCharacters": 12000}
47- }' | jq -r '.results[0].text'
48-```
49-
50-Adjust `maxCharacters` and `numResults` based on how much context
51-you need. Use search for discovery, then fetch full content for
52-the most relevant results.
53-
nvim/README.md+0−119
@@ -1,119 +0,0 @@
1-# Neovim Configuration
2-
3-Modern Neovim configuration using Lua and lazy.nvim plugin manager.
4-
5-## Structure
6-
7-```
8-~/.config/nvim/
9-├── init.lua # Main configuration file
10-├── lua/
11-│ └── plugins/ # Plugin configurations
12-│ ├── nvim-tree.lua # File explorer
13-│ ├── bufferline.lua # Buffer tabs
14-│ ├── fugitive.lua # Git commands
15-│ ├── lsp.lua # LSP configuration with Mason
16-│ ├── gitsigns.lua # Git decorations
17-│ ├── comment.lua # Comment toggling
18-│ └── lualine.lua # Statusline
19-├── colors/
20-│ └── ansi.vim # Colorscheme
21-└── README.md # This file
22-```
23-
24-## Plugins
25-
26-### File Management
27-- **nvim-tree.lua** - Tree-based file explorer. Press `<leader>e` to toggle.
28-
29-### Buffer Tabs
30-- **bufferline.nvim** - VSCode-style buffer tabs with mouse support.
31-
32-### Language Server Protocol (LSP)
33-- **nvim-lspconfig** - LSP client configuration for Neovim
34-- **mason.nvim** - Package manager for LSP servers, DAP servers, linters, and formatters
35-- **mason-lspconfig.nvim** - Bridge between mason.nvim and nvim-lspconfig
36-
37-### Git Integration
38-- **vim-fugitive** - Git commands inside Neovim (`:Git`, `:Git diff`).
39-- **gitsigns.nvim** - Inline git decorations showing added/changed/deleted lines in the sign column.
40-
41-### Editing
42-- **Comment.nvim** - Smart commenting with treesitter support. Press `gcc` to toggle line comment.
43-
44-### UI
45-- **lualine.nvim** - Fast statusline with git branch, diff stats, and diagnostics.
46-
47-## Getting Started
48-
49-1. Open Neovim - plugins will automatically install on first run:
50- ```bash
51- nvim
52- ```
53-
54-2. Wait for lazy.nvim to install all plugins (happens automatically)
55-
56-3. Check plugin status:
57- ```
58- :Lazy
59- ```
60-
61-4. Install LSP servers (optional):
62- ```
63- :Mason
64- ```
65-
66-5. Try the file explorer:
67- ```
68- Press <leader>e
69- ```
70-
71-6. Try commenting:
72- ```
73- Press gcc (toggle comment on line)
74- Press gc + motion (comment with motion, e.g., gcap)
75- ```
76-
77-7. Try git integration (in a git repo):
78- ```
79- Press <leader>d (git diff via fugitive)
80- Press ]c (next git change)
81- Press [c (previous git change)
82- ```
83-
84-## Key Features
85-
86-- **Leader key**: `Space`
87-- **LSP support**: Language server protocol with Mason package manager for easy server installation
88-- **File explorer**: Tree-based with nvim-tree (`<leader>e`)
89-- **Buffer tabs**: Visual buffer list with bufferline.nvim
90-- **Git commands**: Fugitive for `:Git` workflow and quick diffs
91-- **Git decorations**: Inline change markers with gitsigns.nvim
92-- **Terminal colors**: Uses the `ansi` colorscheme and 16-color theme for lualine, respecting your terminal's color palette
93-- **Clean config**: Only essential options, modern Lua syntax
94-- **No clutter**: Swap files, backups disabled
95-
96-## Configuration Philosophy
97-
98-- Minimal and focused - only includes what's needed
99-- Modern Neovim defaults - removes redundant settings
100-- Tree-based navigation - nvim-tree with bufferline tabs
101-- Git-first - excellent git integration out of the box
102-
103-## Customization
104-
105-- Edit plugin configurations in `lua/plugins/*.lua`
106-- Global keybindings are in `init.lua`
107-- Plugin-specific keybindings are in each plugin's config file under `lua/plugins/`
108-
109-## Resources
110-
111-- [lazy.nvim docs](https://github.com/folke/lazy.nvim)
112-- [nvim-lspconfig docs](https://github.com/neovim/nvim-lspconfig)
113-- [mason.nvim docs](https://github.com/williamboman/mason.nvim)
114-- [nvim-tree docs](https://github.com/nvim-tree/nvim-tree.lua)
115-- [bufferline.nvim docs](https://github.com/akinsho/bufferline.nvim)
116-- [vim-fugitive docs](https://github.com/tpope/vim-fugitive)
117-- [gitsigns.nvim docs](https://github.com/lewis6991/gitsigns.nvim)
118-- [Comment.nvim docs](https://github.com/numToStr/Comment.nvim)
119-- [lualine.nvim docs](https://github.com/nvim-lualine/lualine.nvim)
nvim/init.lua+3−91
@@ -11,29 +11,7 @@ vim.opt.linebreak = true
1111 vim.opt.swapfile = false
1212 vim.opt.backup = false
1313 vim.opt.writebackup = false
14-vim.opt.wildmode = 'list:longest,full'
15-vim.opt.wildignore = {
16- '*.pyc',
17- '*.o',
18- '*.obj',
19- '*.so',
20- '*.swp',
21- '*.zip',
22- '*.exe',
23- '*.dll',
24- '*/.git/*',
25- '*/.svn/*',
26- '*/node_modules/*',
27- '*/bower_components/*',
28- '*/.DS_Store',
29- '*/dist/*',
30- '*/build/*',
31- '*/target/*',
32- '*/__pycache__/*',
33- '*.egg-info',
34-}
35-vim.opt.list = true
36-vim.opt.listchars = { tab = '▸ ', trail = '·', eol = '¬', nbsp = '_' }
14+-- vim.opt.termguicolors = true
3715
3816 -- Indentation settings
3917 vim.opt.expandtab = true
@@ -41,34 +19,10 @@ vim.opt.tabstop = 2
4119 vim.opt.shiftwidth = 2
4220 vim.opt.softtabstop = 2
4321
44--- Statusline settings
45-vim.opt.showmode = false -- Don't show mode in command line (lualine shows it)
46-
4722 -- Set leader key to space (must be set before lazy.nvim)
4823 vim.g.mapleader = ' '
4924 vim.g.maplocalleader = ' '
5025
51--- Bootstrap lazy.nvim
52-local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
53-if not vim.loop.fs_stat(lazypath) then
54- vim.fn.system({
55- 'git',
56- 'clone',
57- '--filter=blob:none',
58- 'https://github.com/folke/lazy.nvim.git',
59- '--branch=stable',
60- lazypath,
61- })
62-end
63-vim.opt.rtp:prepend(lazypath)
64-
65--- Load plugins
66-require('lazy').setup('plugins', {
67- change_detection = {
68- notify = false, -- Don't notify on config changes
69- },
70-})
71-
7226 -- Keymaps
7327 local keymap = vim.keymap.set
7428 local opts = { noremap = true, silent = true }
@@ -79,55 +33,13 @@ keymap('n', '<leader>q', ':qall<CR>', { noremap = true, silent = true, desc = 'Q
7933 keymap('n', '<leader>s', ':write<CR>', { noremap = true, silent = true, desc = 'Save buffer' })
8034 keymap('n', '<leader>S', ':wall<CR>', { noremap = true, silent = true, desc = 'Save all buffers' })
8135
82--- LSP formatting
83-keymap('n', '<leader>f', function()
84- vim.lsp.buf.format({ async = true })
85-end, { noremap = true, silent = true, desc = 'Format with LSP' })
86-
87--- Prettier formatting
88-keymap('n', '<leader>F', function()
89- local prettier_path = vim.fn.stdpath('data') .. '/mason/bin/prettier'
90- if vim.fn.executable(prettier_path) == 1 then
91- local bufnr = vim.api.nvim_get_current_buf()
92- local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
93- local content = table.concat(lines, '\n')
94-
95- vim.fn.jobstart({ prettier_path, '--stdin-filepath', vim.api.nvim_buf_get_name(bufnr) }, {
96- stdout_buffered = true,
97- on_stdout = function(_, data)
98- if data then
99- vim.schedule(function()
100- local formatted = table.concat(data, '\n'):gsub('\n$', '')
101- local new_lines = vim.split(formatted, '\n')
102- vim.api.nvim_buf_set_lines(bufnr, 0, -1, false, new_lines)
103- print('Formatted with prettier')
104- end)
105- end
106- end,
107- stdin = content,
108- })
109- else
110- print('Prettier not found. Run :Mason to install it.')
111- end
112-end, { noremap = true, silent = false, desc = 'Format with Prettier' })
113-
11436 -- Movement remaps
11537 keymap('n', 'j', 'gj', { noremap = true })
11638 keymap('n', 'k', 'gk', { noremap = true })
11739
118--- File explorer (nvim-tree)
119-keymap('n', '<leader>e', ':NvimTreeToggle<CR>', { noremap = true, silent = true, desc = 'Toggle file explorer' })
120-
121--- Buffer navigation (bufferline)
122-keymap('n', '<leader>[', ':BufferLineCyclePrev<CR>', { noremap = true, silent = true, desc = 'Previous buffer' })
123-keymap('n', '<leader>]', ':BufferLineCycleNext<CR>', { noremap = true, silent = true, desc = 'Next buffer' })
124-
125--- Git (fugitive)
126-keymap('n', '<leader>d', ':Git ++curwin --paginate diff<CR>', { noremap = true, silent = true, desc = 'Git diff' })
127-
12840 -- Command aliases
12941 vim.api.nvim_create_user_command('Q', 'q', {})
13042 vim.api.nvim_create_user_command('W', 'w', {})
13143
132--- Colorscheme
133-vim.cmd.colorscheme('ansi')
44+-- Theme
45+vim.cmd('colorscheme ansi')
nvim/lazy-lock.json+9−9
@@ -1,14 +1,14 @@
11 {
22 "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
33 "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
4- "fzf-lua": { "branch": "main", "commit": "fb8c50ba62a0daa433b7ac2b78834f318322b879" },
5- "gitsigns.nvim": { "branch": "main", "commit": "abf82a65f185bd54adc0679f74b7d6e1ada690c9" },
4+ "fzf-lua": { "branch": "main", "commit": "834246377489f9a1e6d4df570a7874a48c644b56" },
5+ "gitsigns.nvim": { "branch": "main", "commit": "8d82c240f190fc33723d48c308ccc1ed8baad69d" },
66 "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
7- "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
8- "mason-lspconfig.nvim": { "branch": "main", "commit": "c953789db7fd28eafe5eb5659846d34b5024b3cc" },
9- "mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
10- "nvim-lspconfig": { "branch": "master", "commit": "79c9a15be5731bc8694840a8fb0c9141c20a80c0" },
11- "nvim-tree.lua": { "branch": "master", "commit": "c07ce43527e5f0242121f4eb1feb7ac0ecea8275" },
12- "nvim-web-devicons": { "branch": "master", "commit": "803353450c374192393f5387b6a0176d0972b848" },
13- "vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" }
7+ "lualine.nvim": { "branch": "master", "commit": "a905eeebc4e63fdc48b5135d3bf8aea5618fb21c" },
8+ "lush.nvim": { "branch": "main", "commit": "9c60ec2279d62487d942ce095e49006af28eed6e" },
9+ "mason.nvim": { "branch": "main", "commit": "b03fb0f20bc1d43daf558cda981a2be22e73ac42" },
10+ "nvim-tree.lua": { "branch": "master", "commit": "d277467fc0d1d0e2bca88165a1de6b526f9f6fe8" },
11+ "nvim-web-devicons": { "branch": "master", "commit": "c72328a5494b4502947a022fe69c0c47e53b6aa6" },
12+ "vim-fugitive": { "branch": "master", "commit": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0" },
13+ "zenbones.nvim": { "branch": "main", "commit": "22b7fb75593412e0dc81b4bdefae718e9e84aa82" }
1414 }
nvim/lua/lualine/themes/ansi.lua+0−60
@@ -1,60 +0,0 @@
1--- Lualine theme using ANSI cterm colors.
2--- Adapts to dark/light background automatically.
3-
4-local is_light = vim.o.background == 'light'
5-
6-local section_b = { fg = is_light and 0 or 15, bg = 8 }
7-local section_c = { fg = is_light and 0 or 15, bg = is_light and 7 or 0 }
8-
9-local theme = {
10- normal = {
11- a = { fg = 0, bg = 3, gui = 'bold' },
12- b = section_b,
13- c = section_c,
14- x = section_c,
15- y = section_b,
16- z = section_b,
17- },
18- insert = {
19- a = { fg = 0, bg = 2, gui = 'bold' },
20- b = section_b,
21- c = section_c,
22- x = section_c,
23- y = section_b,
24- z = section_b,
25- },
26- visual = {
27- a = { fg = 0, bg = 5, gui = 'bold' },
28- b = section_b,
29- c = section_c,
30- x = section_c,
31- y = section_b,
32- z = section_b,
33- },
34- replace = {
35- a = { fg = 0, bg = 6, gui = 'bold' },
36- b = section_b,
37- c = section_c,
38- x = section_c,
39- y = section_b,
40- z = section_b,
41- },
42- command = {
43- a = { fg = 0, bg = 4, gui = 'bold' },
44- b = section_b,
45- c = section_c,
46- x = section_c,
47- y = section_b,
48- z = section_b,
49- },
50- inactive = {
51- a = { fg = 8, bg = is_light and 7 or 0 },
52- b = { fg = 8, bg = is_light and 7 or 0 },
53- c = { fg = 8, bg = is_light and 7 or 0 },
54- x = { fg = 8, bg = is_light and 7 or 0 },
55- y = { fg = 8, bg = is_light and 7 or 0 },
56- z = { fg = 8, bg = is_light and 7 or 0 },
57- },
58-}
59-
60-return theme
nvim/lua/plugins/bufferline.lua+0−99
@@ -1,99 +0,0 @@
1--- bufferline.nvim - VSCode-like buffer tabs
2-return {
3- 'akinsho/bufferline.nvim',
4- version = '*',
5- dependencies = { 'nvim-tree/nvim-web-devicons' },
6- config = function()
7- require('bufferline').setup({
8- options = {
9- -- Mouse support for clicking tabs
10- mode = 'buffers',
11- numbers = 'none',
12- close_command = 'bdelete! %d',
13- right_mouse_command = 'bdelete! %d',
14- left_mouse_command = 'buffer %d',
15- middle_mouse_command = nil,
16- -- Show close button on tabs
17- show_buffer_close_icons = true,
18- show_close_icon = false,
19- -- Show modified indicator
20- modified_icon = '●',
21- -- Show icons
22- show_buffer_icons = true,
23- -- Tab appearance
24- separator_style = 'thin',
25- always_show_bufferline = true,
26- -- Integration with nvim-tree
27- offsets = {
28- {
29- filetype = 'NvimTree',
30- text = 'File Explorer',
31- text_align = 'left',
32- separator = true,
33- },
34- },
35- },
36- -- ANSI color theme (matches colors/ansi.vim)
37- highlights = {
38- -- Background fill
39- fill = {
40- ctermbg = 'NONE',
41- },
42- -- Inactive buffers (not visible)
43- background = {
44- ctermfg = 7,
45- ctermbg = 0,
46- },
47- -- Visible buffers (visible but not selected)
48- buffer_visible = {
49- ctermfg = 15,
50- ctermbg = 8,
51- },
52- -- Selected buffer
53- buffer_selected = {
54- ctermfg = 0,
55- ctermbg = 11,
56- },
57- -- Modified indicator
58- modified = {
59- ctermfg = 7,
60- ctermbg = 0,
61- },
62- modified_visible = {
63- ctermfg = 15,
64- ctermbg = 8,
65- },
66- modified_selected = {
67- ctermfg = 0,
68- ctermbg = 11,
69- },
70- -- Separators
71- separator = {
72- ctermfg = 8,
73- ctermbg = 0,
74- },
75- separator_visible = {
76- ctermfg = 8,
77- ctermbg = 8,
78- },
79- separator_selected = {
80- ctermfg = 8,
81- ctermbg = 11,
82- },
83- -- Close buttons
84- close_button = {
85- ctermfg = 7,
86- ctermbg = 0,
87- },
88- close_button_visible = {
89- ctermfg = 15,
90- ctermbg = 8,
91- },
92- close_button_selected = {
93- ctermfg = 0,
94- ctermbg = 11,
95- },
96- },
97- })
98- end,
99-}
nvim/lua/plugins/comment.lua+0−39
@@ -1,39 +0,0 @@
1--- Comment.nvim - Smart and powerful comment plugin
2-return {
3- 'numToStr/Comment.nvim',
4- config = function()
5- require('Comment').setup({
6- -- Add a space between comment and the line
7- padding = true,
8- -- Whether the cursor should stay at its position
9- sticky = true,
10- -- Lines to be ignored while (un)comment
11- ignore = nil,
12- -- LHS of toggle mappings in NORMAL mode
13- toggler = {
14- line = 'gcc', -- Line-comment toggle keymap
15- block = 'gbc', -- Block-comment toggle keymap
16- },
17- -- LHS of operator-pending mappings in NORMAL and VISUAL mode
18- opleader = {
19- line = 'gc', -- Line-comment keymap
20- block = 'gb', -- Block-comment keymap
21- },
22- -- LHS of extra mappings
23- extra = {
24- above = 'gcO', -- Add comment on the line above
25- below = 'gco', -- Add comment on the line below
26- eol = 'gcA', -- Add comment at the end of line
27- },
28- -- Enable keybindings
29- mappings = {
30- basic = true,
31- extra = true,
32- },
33- -- Function to call before (un)comment
34- pre_hook = nil,
35- -- Function to call after (un)comment
36- post_hook = nil,
37- })
38- end,
39-}
nvim/lua/plugins/fugitive.lua+0−4
@@ -1,4 +0,0 @@
1--- vim-fugitive - Git integration
2-return {
3- 'tpope/vim-fugitive',
4-}
nvim/lua/plugins/fzf-lua.lua+0−21
@@ -1,21 +0,0 @@
1--- fzf-lua - Fuzzy file and content finder
2-return {
3- 'ibhagwan/fzf-lua',
4- dependencies = { 'nvim-tree/nvim-web-devicons' },
5- keys = {
6- {
7- '<leader>p',
8- function()
9- require('fzf-lua').files({ gitignore = true })
10- end,
11- desc = 'Find files (fuzzy path)',
12- },
13- },
14- config = function()
15- require('fzf-lua').setup({
16- files = {
17- gitignore = true,
18- },
19- })
20- end,
21-}
nvim/lua/plugins/gitsigns.lua+0−95
@@ -1,95 +0,0 @@
1--- gitsigns.nvim - Git decorations in sign column and inline blame
2-return {
3- 'lewis6991/gitsigns.nvim',
4- config = function()
5- require('gitsigns').setup({
6- signs = {
7- add = { text = '┃' },
8- change = { text = '┃' },
9- delete = { text = '_' },
10- topdelete = { text = '‾' },
11- changedelete = { text = '~' },
12- untracked = { text = '┆' },
13- },
14- signs_staged = {
15- add = { text = '┃' },
16- change = { text = '┃' },
17- delete = { text = '_' },
18- topdelete = { text = '‾' },
19- changedelete = { text = '~' },
20- untracked = { text = '┆' },
21- },
22- signs_staged_enable = true,
23- signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
24- numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
25- linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
26- word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
27- watch_gitdir = {
28- follow_files = true
29- },
30- auto_attach = true,
31- attach_to_untracked = false,
32- current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
33- current_line_blame_opts = {
34- virt_text = true,
35- virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
36- delay = 1000,
37- ignore_whitespace = false,
38- virt_text_priority = 100,
39- use_focus = true,
40- },
41- current_line_blame_formatter = '<author>, <author_time:%R> - <summary>',
42- sign_priority = 6,
43- update_debounce = 100,
44- status_formatter = nil, -- Use default
45- max_file_length = 40000, -- Disable if file is longer than this (in lines)
46- preview_config = {
47- -- Options passed to nvim_open_win
48- style = 'minimal',
49- relative = 'cursor',
50- row = 0,
51- col = 1
52- },
53- on_attach = function(bufnr)
54- local gs = package.loaded.gitsigns
55-
56- local function map(mode, l, r, opts)
57- opts = opts or {}
58- opts.buffer = bufnr
59- vim.keymap.set(mode, l, r, opts)
60- end
61-
62- -- Navigation
63- map('n', ']c', function()
64- if vim.wo.diff then return ']c' end
65- vim.schedule(function() gs.next_hunk() end)
66- return '<Ignore>'
67- end, { expr = true, desc = 'Next git hunk' })
68-
69- map('n', '[c', function()
70- if vim.wo.diff then return '[c' end
71- vim.schedule(function() gs.prev_hunk() end)
72- return '<Ignore>'
73- end, { expr = true, desc = 'Previous git hunk' })
74-
75- -- Actions
76- map('n', '<leader>hs', gs.stage_hunk, { desc = 'Stage hunk' })
77- map('n', '<leader>hr', gs.reset_hunk, { desc = 'Reset hunk' })
78- map('v', '<leader>hs', function() gs.stage_hunk {vim.fn.line('.'), vim.fn.line('v')} end, { desc = 'Stage hunk' })
79- map('v', '<leader>hr', function() gs.reset_hunk {vim.fn.line('.'), vim.fn.line('v')} end, { desc = 'Reset hunk' })
80- map('n', '<leader>hS', gs.stage_buffer, { desc = 'Stage buffer' })
81- map('n', '<leader>hu', gs.undo_stage_hunk, { desc = 'Undo stage hunk' })
82- map('n', '<leader>hR', gs.reset_buffer, { desc = 'Reset buffer' })
83- map('n', '<leader>hp', gs.preview_hunk, { desc = 'Preview hunk' })
84- map('n', '<leader>hb', function() gs.blame_line{full=true} end, { desc = 'Blame line' })
85- map('n', '<leader>tb', gs.toggle_current_line_blame, { desc = 'Toggle line blame' })
86- map('n', '<leader>hd', gs.diffthis, { desc = 'Diff this' })
87- map('n', '<leader>hD', function() gs.diffthis('~') end, { desc = 'Diff this ~' })
88- map('n', '<leader>td', gs.toggle_deleted, { desc = 'Toggle deleted' })
89-
90- -- Text object
91- map({'o', 'x'}, 'ih', ':<C-U>Gitsigns select_hunk<CR>', { desc = 'Select hunk' })
92- end
93- })
94- end,
95-}
nvim/lua/plugins/lsp.lua+0−126
@@ -1,126 +0,0 @@
1--- LSP configuration with Mason for server management
2-return {
3- -- Mason: LSP server installer
4- {
5- 'williamboman/mason.nvim',
6- config = function()
7- local mason = require('mason')
8- mason.setup({
9- ui = {
10- border = 'single',
11- icons = {
12- package_installed = '✓',
13- package_pending = '➜',
14- package_uninstalled = '✗'
15- }
16- }
17- })
18-
19- -- Auto-install language servers and formatters if not present
20- local mason_registry = require('mason-registry')
21- local packages = { 'gopls', 'marksman', 'prettier' }
22-
23- for _, package in ipairs(packages) do
24- if not mason_registry.is_installed(package) then
25- vim.cmd('MasonInstall ' .. package)
26- end
27- end
28- -- LSP keybindings (only active when LSP is attached)
29- vim.api.nvim_create_autocmd('LspAttach', {
30- group = vim.api.nvim_create_augroup('UserLspConfig', {}),
31- callback = function(ev)
32- local opts = { buffer = ev.buf, noremap = true, silent = true }
33-
34- -- Navigation
35- vim.keymap.set('n', 'gd', vim.lsp.buf.definition, vim.tbl_extend('force', opts, { desc = 'Go to definition' }))
36- vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, vim.tbl_extend('force', opts, { desc = 'Go to declaration' }))
37- vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, vim.tbl_extend('force', opts, { desc = 'Go to implementation' }))
38- vim.keymap.set('n', 'gr', vim.lsp.buf.references, vim.tbl_extend('force', opts, { desc = 'Show references' }))
39- vim.keymap.set('n', 'K', vim.lsp.buf.hover, vim.tbl_extend('force', opts, { desc = 'Hover documentation' }))
40-
41- -- Actions
42- vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, vim.tbl_extend('force', opts, { desc = 'Rename symbol' }))
43- vim.keymap.set('n', '<leader>ca', vim.lsp.buf.code_action, vim.tbl_extend('force', opts, { desc = 'Code action' }))
44-
45- -- Diagnostics
46- vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, vim.tbl_extend('force', opts, { desc = 'Previous diagnostic' }))
47- vim.keymap.set('n', ']d', vim.diagnostic.goto_next, vim.tbl_extend('force', opts, { desc = 'Next diagnostic' }))
48- vim.keymap.set('n', '<leader>,', vim.diagnostic.setloclist, vim.tbl_extend('force', opts, { desc = 'Diagnostic list' }))
49- end,
50- })
51-
52- -- Default server capabilities
53- local capabilities = vim.lsp.protocol.make_client_capabilities()
54-
55- -- Setup language servers using vim.lsp.config
56-
57- -- Go language server
58- vim.lsp.config.gopls = {
59- cmd = { 'gopls' },
60- filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
61- root_markers = { 'go.work', 'go.mod', '.git' },
62- capabilities = capabilities,
63- settings = {
64- gopls = {
65- analyses = {
66- unusedparams = true,
67- },
68- staticcheck = true,
69- gofumpt = true,
70- },
71- },
72- }
73- vim.lsp.enable('gopls')
74-
75- -- Markdown language server
76- vim.lsp.config.marksman = {
77- cmd = { 'marksman', 'server' },
78- filetypes = { 'markdown', 'markdown.mdx' },
79- root_markers = { '.git', '.marksman.toml' },
80- capabilities = capabilities,
81- }
82- vim.lsp.enable('marksman')
83-
84- -- Example configurations (uncomment and modify as needed):
85-
86- -- vim.lsp.config.lua_ls = {
87- -- cmd = { 'lua-language-server' },
88- -- filetypes = { 'lua' },
89- -- root_markers = { '.luarc.json', '.luarc.jsonc', '.luacheckrc', '.stylua.toml', 'stylua.toml', 'selene.toml', 'selene.yml', '.git' },
90- -- capabilities = capabilities,
91- -- settings = {
92- -- Lua = {
93- -- diagnostics = {
94- -- globals = { 'vim' },
95- -- },
96- -- },
97- -- },
98- -- }
99- -- vim.lsp.enable('lua_ls')
100-
101- -- vim.lsp.config.ts_ls = {
102- -- cmd = { 'typescript-language-server', '--stdio' },
103- -- filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
104- -- root_markers = { 'package.json', 'tsconfig.json', 'jsconfig.json', '.git' },
105- -- capabilities = capabilities,
106- -- }
107- -- vim.lsp.enable('ts_ls')
108-
109- -- vim.lsp.config.pyright = {
110- -- cmd = { 'pyright-langserver', '--stdio' },
111- -- filetypes = { 'python' },
112- -- root_markers = { 'pyrightconfig.json', 'pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt', 'Pipfile', '.git' },
113- -- capabilities = capabilities,
114- -- }
115- -- vim.lsp.enable('pyright')
116-
117- -- vim.lsp.config.rust_analyzer = {
118- -- cmd = { 'rust-analyzer' },
119- -- filetypes = { 'rust' },
120- -- root_markers = { 'Cargo.toml', 'rust-project.json', '.git' },
121- -- capabilities = capabilities,
122- -- }
123- -- vim.lsp.enable('rust_analyzer')
124- end,
125- }
126-}
nvim/lua/plugins/lualine.lua+0−62
@@ -1,62 +0,0 @@
1--- lualine.nvim - Fast and easy to configure statusline
2-return {
3- 'nvim-lualine/lualine.nvim',
4- dependencies = { 'nvim-tree/nvim-web-devicons' },
5- config = function()
6- require('lualine').setup({
7- options = {
8- icons_enabled = true,
9- theme = 'ansi',
10- component_separators = { left = '|', right = '|' },
11- section_separators = { left = '', right = '' },
12- disabled_filetypes = {
13- statusline = {},
14- winbar = {},
15- },
16- ignore_focus = {},
17- always_divide_middle = true,
18- globalstatus = true,
19- refresh = {
20- statusline = 1000,
21- tabline = 1000,
22- winbar = 1000,
23- }
24- },
25- sections = {
26- lualine_a = {'mode'},
27- lualine_b = {
28- 'branch',
29- 'diff',
30- 'diagnostics'
31- },
32- lualine_c = {
33- {
34- 'filename',
35- path = 1, -- 0 = just filename, 1 = relative path, 2 = absolute path
36- shorting_target = 40,
37- symbols = {
38- modified = '[+]',
39- readonly = '[-]',
40- unnamed = '[No Name]',
41- }
42- }
43- },
44- lualine_x = {'encoding', 'fileformat', 'filetype'},
45- lualine_y = {'progress'},
46- lualine_z = {'location'}
47- },
48- inactive_sections = {
49- lualine_a = {},
50- lualine_b = {},
51- lualine_c = {'filename'},
52- lualine_x = {'location'},
53- lualine_y = {},
54- lualine_z = {}
55- },
56- tabline = {},
57- winbar = {},
58- inactive_winbar = {},
59- extensions = {}
60- })
61- end,
62-}
nvim/lua/plugins/nvim-tree.lua+0−71
@@ -1,71 +0,0 @@
1--- nvim-tree.lua - File explorer tree
2-return {
3- 'nvim-tree/nvim-tree.lua',
4- dependencies = { 'nvim-tree/nvim-web-devicons' },
5- config = function()
6- -- Disable netrw (nvim's default file explorer)
7- vim.g.loaded_netrw = 1
8- vim.g.loaded_netrwPlugin = 1
9-
10- require('nvim-tree').setup({
11- -- Open tree on startup
12- view = {
13- width = 22,
14- side = 'left',
15- },
16- -- Git integration
17- git = {
18- enable = true,
19- ignore = false,
20- },
21- -- Show git status icons
22- renderer = {
23- icons = {
24- show = {
25- git = true,
26- folder = true,
27- file = true,
28- folder_arrow = true,
29- },
30- glyphs = {
31- git = {
32- unstaged = "✗",
33- staged = "✓",
34- unmerged = "",
35- renamed = "➜",
36- untracked = "★",
37- deleted = "",
38- ignored = "◌",
39- },
40- },
41- },
42- },
43- -- Automatically open on startup
44- actions = {
45- open_file = {
46- quit_on_open = false,
47- },
48- },
49- -- Filesystem watcher configuration
50- filesystem_watchers = {
51- enable = true,
52- debounce_delay = 50,
53- max_events = 200,
54- ignore_dirs = {
55- 'node_modules',
56- '.git',
57- 'bin',
58- 'build',
59- 'dist',
60- 'target',
61- '.cache',
62- '.venv',
63- 'venv',
64- '__pycache__',
65- '/home/xonecas/src/zoea-nova/bin',
66- },
67- },
68- })
69-
70- end,
71-}
nvim/lua/plugins/theme-sync.lua+0−28
@@ -1,28 +0,0 @@
1--- Sync vim background with KDE dark/light mode.
2--- Reads ~/.local/state/kde-color-mode on startup, and <leader>T toggles.
3-
4-local mode_file = vim.fn.expand('~/.local/state/kde-color-mode')
5-
6-local function read_mode()
7- local f = io.open(mode_file, 'r')
8- if not f then return nil end
9- local mode = f:read('*l')
10- f:close()
11- if mode == 'dark' or mode == 'light' then
12- return mode
13- end
14- return nil
15-end
16-
17--- Apply system mode on startup
18-local mode = read_mode()
19-if mode then
20- vim.o.background = mode
21-end
22-
23--- Toggle keybind
24-vim.keymap.set('n', '<leader>T', function()
25- vim.o.background = vim.o.background == 'dark' and 'light' or 'dark'
26-end, { noremap = true, silent = true, desc = 'Toggle dark/light theme' })
27-
28-return {}
nvim/tests-issue.md+0−2
@@ -1,2 +0,0 @@
1-T ere is something wrong with how we are testing, they are producing false positives for almost every TUI test. Particularly with widths, unicode characters, alignment of UI items, overlapping background colors and overflowing lines. Start with our tests, search documentation online on how to properly and deterministically test a TUI with our framework.
2-