xonecas.io
56101
Df

dotfiles / commit 3494cf4

feat: use the latest vim-ai-complete and setup some keybinds for it

xonecas2026-09-10 3494cf4162d2016a5010b5a8aa77ae56425fe0dd parent 58f7696

4 files changed

ghostty/config+1−3
@@ -10,11 +10,9 @@ font-family = ZedMono Nerd Font Mono
1010 # font-family = Monaspace Radon NF
1111
1212 font-size = 12
13-window-width = 150
14-window-height = 32
1513 unfocused-split-opacity = 1
1614
17-theme = 0x96f
15+# theme = 0x96f
1816 # theme = Zenwritten Dark
1917 # theme = Gruvbox Dark Hard
2018 theme = TokyoNight Night
nvim/init.lua+2−0
@@ -253,6 +253,8 @@ end, { desc = 'Open diagnostics quickfix list' })
253253 -- Plugin keybinds
254254 keymap('n', '<leader>e', ':NvimTreeToggle<CR>', opts)
255255 keymap('n', '<leader>f', ':Telescope find_files<CR>', opts)
256+keymap('x', '<leader>r', ':Ai<CR>', { desc = 'AI replace selection' })
257+keymap('n', '<leader>a', '<cmd>AiComplete<CR>', { desc = 'AI completion at cursor' })
256258
257259 -- Movement remaps
258260 keymap('n', 'j', 'gj', { noremap = true })
nvim/lazy-lock.json+1−1
@@ -12,5 +12,5 @@
1212 "telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
1313 "telescope.nvim": { "branch": "master", "commit": "40aedd8a68c78a656a10a8d62d80c54af59420fb" },
1414 "tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" },
15- "vim-ai-complete": { "branch": "main", "commit": "67d65b63d0051a370daec178460b74addc2f7780" }
15+ "vim-ai-complete": { "branch": "main", "commit": "07e2c5ad926ce7c13583ce9ddf93815894f7eed5" }
1616 }
pi/AGENTS.md+0−11
@@ -1,11 +0,0 @@
1-# Rules for AGENTS
2-
3-- Always return exactly what was asked. Do not add scope, backwards compatibility or extras without the user explicitly asking.
4-- Use `gh` for Github (it's already authenticated as me).
5-- Use `uvx hf` for HuggingFace (also already authenticated as me).
6-- Use `curl` and the environment's `EXA_API_KEY` to search and read web contents.
7-
8-## Golden rule for coding
9-
10-> Bugs, Cyclomatic complexity, Time complexity, and Memory complexity are all directly related to the single lines of code amount.
11-> Less code, less complexity, less bugs.