173 Commits

Author SHA1 Message Date
c235fb88e1 Setup is required for unimpaired.nvim 2024-03-17 14:16:06 +00:00
772bf3a3c1 Tune cmake and requirements filetypes 2024-03-17 14:03:36 +00:00
6317d02148 Extend :Remove to accept bang :Remove!
This patch changes the behaviour `:Remove` to only remove the file,
leaving the current buffer untouched. `:Remove!` now has the old
behaviour of removing the file and the buffer.
2024-03-17 14:01:36 +00:00
21502aadd6 Add < and > to the C++ matchpairs setting for % 2024-03-17 14:01:01 +00:00
be5e7007c9 Override some more highlights 2024-03-16 23:19:06 +00:00
61dcbe301b Remove fixme which doesn't seem necessary 2024-03-16 22:44:33 +00:00
2a6b777949 With fidget.nvim there's no need for statusline lsp info 2024-03-16 22:38:01 +00:00
f9825d9b69 Port over :TextWidth <N> command 2024-03-15 16:20:59 +00:00
355c4feecc Add real-time LSP info with fidget 2024-03-15 00:15:42 +00:00
6533a96ba0 Fix netrw - mapping when in a buffer with no name/file 2024-03-14 23:57:41 +00:00
6c0c906cb2 Fix Quickfix/Location List statusmenu mode string 2024-03-14 23:36:23 +00:00
378c8b0be4 Improve LSP configuration
* Add more recommended mappings
* Add Python LSP support with PyRight and Ruff
2024-03-14 23:35:35 +00:00
4072fd3ccf Add a couple of plugins to pretty up the place 2024-03-14 23:34:09 +00:00
77452d989d Add :Remove command, to remove file of current buffer 2024-03-14 23:17:27 +00:00
f93360d854 Actually run compdb asynchronously
Turns out vim.schedule() only defers calling the function until main
event loop has some free cycles but can still block the UI, just a bit
later. This patch replaces the external command invoked in the callback
passed into vim.schedule() with vim.fn.jobstart() and moves the other
code into job callbacks.
2024-03-14 21:17:36 +00:00
fb2d661a0e Remove J/K mappings to move block up/down a line 2024-03-14 20:41:58 +00:00
d774c2867f Fix indentation of namespace snippet 2024-03-13 20:16:32 +00:00
49af40c918 Add more Telescope LSP mappings 2024-03-13 20:16:15 +00:00
f49f56d043 Ignore warnings from compdb in :BuildDir 2024-03-13 20:15:41 +00:00
0d04a9812c Add tree-sitter based text objects
Mappings for:

* functions
* function arguments/parameters
* comments
2024-03-12 22:18:13 +00:00
eae24ab24c Add namespace snippet 2024-03-12 20:10:17 +00:00
6c941341ff Fix loading of vim-fugitive 2024-03-12 19:40:57 +00:00
eaa63924e2 Make telescope mappings consistent 2024-03-11 22:34:08 +00:00
4644f7e6fa Add unimpaired.nvim plugin 2024-03-11 20:26:07 +00:00
23ac458935 Shorten init.lua 2024-03-11 20:22:59 +00:00
3353b099be Port custom statusline from vimscript & change colors 2024-03-11 00:09:16 +00:00
0656de97fa Implement :BuildDir and :Build commands in Lua
Ported over from and improved for best integration with Neovim ecosystem
https://code.infektor.net/config/vim/src/branch/master/autoload/build.vim
2024-03-09 16:42:12 +00:00
573c548245 Add some C/C++ snippets 2024-03-09 11:51:42 +00:00
bbe6c378fd Update C++ snippets 2024-03-09 11:30:44 +00:00
51ae7955f7 Tweak kanagawa theme 2024-03-08 20:12:40 +00:00
e683120b10 Make sure to trim whitespace from commentstring in snippets 2024-03-08 15:31:52 +00:00
598c389741 Add Telescope Devicons dependency 2024-03-06 20:15:32 +00:00
f8fddc405e Use fzy for faster Telescope filtering 2024-03-06 20:15:04 +00:00
828db0d073 Tweak Telescope mappings to my liking 2024-03-06 20:14:39 +00:00
9e5b1597ba Make Telescope help tags mapping the proper pneumonic 2024-03-06 20:13:36 +00:00
41736377bd Remove tab mapping todo, went another way 2024-03-06 19:48:08 +00:00
cb98d962a5 Make C++ commentstring sane 2024-03-05 23:38:56 +00:00
0c7636dfa5 Add snippet mappings & being porting snippets 2024-03-05 23:36:41 +00:00
781cb49cb2 Tune completion sources & update comment 2024-03-05 23:35:36 +00:00
6ef97d96c5 Add code actions prefix UI
Not only does this show a diff of the selected code action before you
apply it, it uses Telescope for display and selection of the desired
code action.
2024-03-05 23:34:20 +00:00
e314314574 Switch to <C-l> to confirm completions
Previous mapping of <C-y> caused issues due to y being too close to u so
fat fingers would immediately undo the completion expansion.
2024-03-05 23:32:20 +00:00
983d11e48c Make visual mode text-case mappings more ergonomic 2024-03-05 23:31:40 +00:00
ef84de559f Use vim.opt.listchars properly 2024-03-05 23:31:07 +00:00
b03171b93a Add autocmd to restore the cursor position across sessions 2024-03-05 21:30:54 +00:00
a4b3d67216 Switch up statusline plugin 2024-03-05 00:21:42 +00:00
cd767afa32 Abolished vim-abolish with text-change.nvim 2024-03-05 00:08:16 +00:00
b84b028a7e Learned how to append to a vim.opt 2024-03-05 00:07:58 +00:00
ae46059400 Change up Telescope mappings 2024-03-05 00:07:44 +00:00
309153dd89 Add gitsigns.nvim and vim-fugitive 2024-03-05 00:07:10 +00:00
c62bffa083 Cleanup completions mappings todos 2024-03-04 21:22:03 +00:00