159 Commits

Author SHA1 Message Date
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
68d50081ff Simplify netrw code that moves cursor to filename 2024-03-04 21:21:20 +00:00
2d22ea836f Iron out bugs and document completions plugin setup 2024-03-04 00:32:58 +00:00
d30de16dca Port fix for gx in WSL 2024-03-04 00:32:02 +00:00
0c9780cdd5 Ignore lua-ls warnings about missing-fields 2024-03-03 22:43:39 +00:00
97cfaddce8 Port coc.nvim mappings to native LSP 2024-03-03 22:15:10 +00:00
1d45d47556 Add treesitter based vim-endwise reimplementation 2024-03-03 22:14:08 +00:00
bbccd0563e Remove useless comment 2024-03-03 22:13:22 +00:00
56da219cfb Add mappings to move visual selections around 2024-03-03 22:12:58 +00:00
6eadbc39dc Add surround plugin 2024-03-03 20:01:56 +00:00
15486edb97 Add comment toggle plugin 2024-03-03 19:47:26 +00:00
02432384f4 Add todo plugin for highlights & telescope integration 2024-03-03 19:46:43 +00:00
153b9a0843 Fully port over options from vim config 2024-03-03 19:46:12 +00:00
9d7afda967 Tune theme settings 2024-03-03 19:44:20 +00:00
dcfe48a4b2 Switch to Kanagawa theme 2024-03-03 16:49:08 +00:00