Skip to content

Commit

Permalink
Add UltiSnips
Browse files Browse the repository at this point in the history
UltiSnips is a snippet manager, but it also requires a directory to
store its so-called "snippets". This installs UltiSnips into the vim
configuration and also creates a path within .vim to store those
snippets. Perhaps in the future it will make sense to make a separate
repo (or a flake) out of those.
  • Loading branch information
timraymond committed Nov 26, 2024
1 parent 66efb47 commit 4e2899a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
text = "keep";
};

home.file.".vim/snips/.keep" = {
enable = true;
text = "keep";
};

home.packages = with pkgs; [
ripgrep
gh
Expand Down
3 changes: 3 additions & 0 deletions home/programs/vim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
vim-helm
pkgs.vim-bicep
vim-terraform
ultisnips
];
extraConfig = ''
colorscheme space_vim_theme
Expand All @@ -32,6 +33,8 @@
set directory=~/.vim/swapfiles
let g:UltiSnipsSnippetDirectories = ["snips"]
map <Leader>e <Plug>(easymotion-prefix)
nnoremap <leader>gs :Git<CR>
Expand Down

0 comments on commit 4e2899a

Please sign in to comment.