-- Set as the leader key -- See `:help mapleader` -- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used) vim.g.mapleader = ',' vim.g.maplocalleader = ',' -- Set to true if you have a Nerd Font installed and selected in the terminal vim.g.have_nerd_font = true require 'opt' require 'keymap' require 'autocmd' require 'lazy_init' require('helpers').edit_cf('v', '/init.lua') --[[ TODO: Neovim configurations I want to add: - Clearer line numbers (weirdly not as simple as it sounds) - Debugging keymap that works like PHPStorm - Improve snippet expansion (an get rid of that stupid #endsection snippet) - Better organising of buffers when opening side panels (like AI chat and test summary) - Close test panel when opening debugger and vice versa using edgy - Close terminal from inside terminal buffer - Get shift key bindings working inside tmux - Fix ctrl+shift+a keybinding for AI actions - Get VectorCode working - Add LSP symbols for Pest tests - More prompts - Give AI better context and tools for working with Hylark - Figure out workspaces - Figure out agentic workflow - Figure out a better way to add relevant buffers to AI - Figure out debug expressions - Better keymaps for debug movements ]] -- " Auto-Commands --- {{{ -- -- augroup modes -- autocmd! -- autocmd FocusLost * call feedkeys("\") "Go to normal mode when moving away -- autocmd BufNewFile * call feedkeys("i") "Go to insert mode when starting a new file -- augroup END -- -- "Recompile suckless software when updating config -- augroup suckless -- autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; doas make install && { killall -q dwmblocks;setsid -f dwmblocks } -- autocmd BufWritePost ~/.local/src/dwm/config.h !cd ~/.local/src/dwm/; doas make clean install -- autocmd BufWritePost ~/.local/src/st/config.h !cd ~/.local/src/st/; doas make clean install -- " }}} -- -- " Notes and tips -- " - press 'zz' to instantly center the line where the cursor is located. -- " - You can increment numbers with . -- " - To operate on multiple lines use to select the lines, to go to -- " insert mode, perform edit, press . -- " - Use the command :r to paste the output of a command to the buffer.