Add precogntion for motion hints

This commit is contained in:
Haak Saxberg 2024-04-08 15:11:57 -07:00
parent 9e73352f7a
commit 7a939f52c8
3 changed files with 14 additions and 1 deletions

View file

@ -41,6 +41,17 @@ let
sha256 = "sha256-+MzEGnhlrYRvAfskOwmw69OC1CsPXt7s3z+xPe9XPqs";
};
};
vim-precognition = pkgs.vimUtils.buildVimPlugin {
name = "vim-precognition";
version = "2024-05-26";
src = pkgs.fetchFromGitHub {
owner = "tris203";
repo = "precognition.nvim";
rev = "b40c3539f95504bea2ac4ac4dc866a95edba6d4d";
sha256 = "sha256-fyaMWL0MsmWJ8KcY1QkbtoZ7tDbIbFbEYgA/ZsOoVSk=";
};
};
in
with builtins;
{
@ -51,6 +62,7 @@ with builtins;
vim-sensible
vim-startify
vim-catppuccino
vim-precognition
{
plugin = fzf-vim;

View file

@ -52,6 +52,7 @@ autocmd BufWritePre * :%s/\s\+$//e
noremap ; :
inoremap jj <Esc>
noremap Q <nop>
noremap ? :lua require("precognition").peek()<CR>
""" Esperanto digraphs (for use with ctrl-k)
:digraph Cx 264
@ -69,7 +70,6 @@ noremap Q <nop>
""" Terminal mode remaps
tnoremap <Esc> <C-\><C-n>
nnoremap <leader>o :below 10sp term://$SHELL<cr>i
" Quicker window movement
nnoremap <C-j> <C-w>j

View file

@ -81,6 +81,7 @@ in
keycastr
discord
postbird
pkgs.ngrok
# wishlist
# todo (unsupported on aarch64-darwin):