summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-18 22:50:19 +0200
committerAdrian Kummerlaender2019-06-18 22:50:19 +0200
commitdbe52c795d961bd6b8b5c70205dc06fec549064d (patch)
treed2642e3cee0faa6dfa99e6e701ccb353bde19439
parentf232a4a9f14c311b859d20352d26acb6712d9dc3 (diff)
downloadpkgs-dbe52c795d961bd6b8b5c70205dc06fec549064d.tar
pkgs-dbe52c795d961bd6b8b5c70205dc06fec549064d.tar.gz
pkgs-dbe52c795d961bd6b8b5c70205dc06fec549064d.tar.bz2
pkgs-dbe52c795d961bd6b8b5c70205dc06fec549064d.tar.lz
pkgs-dbe52c795d961bd6b8b5c70205dc06fec549064d.tar.xz
pkgs-dbe52c795d961bd6b8b5c70205dc06fec549064d.tar.zst
pkgs-dbe52c795d961bd6b8b5c70205dc06fec549064d.zip
Add basic UltiSnips config
-rw-r--r--pkgs/custom-neovim/asset/rc.vim5
-rw-r--r--pkgs/custom-neovim/default.nix1
2 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/custom-neovim/asset/rc.vim b/pkgs/custom-neovim/asset/rc.vim
index dee54ff..fbab929 100644
--- a/pkgs/custom-neovim/asset/rc.vim
+++ b/pkgs/custom-neovim/asset/rc.vim
@@ -146,3 +146,8 @@ let g:gutentags_enabled = 0
if executable('ctags')
let g:gutentags_enabled = 1
end
+
+let g:UltiSnipsExpandTrigger = '<Tab>'
+let g:UltiSnipsJumpForwardTrigger = '<Tab>'
+
+let g:UltiSnipsSnippetDirectories = [$PWD.'/.lvimsnip', $HOME.'/.config/nvim/snip']
diff --git a/pkgs/custom-neovim/default.nix b/pkgs/custom-neovim/default.nix
index e7d7764..0615b7e 100644
--- a/pkgs/custom-neovim/default.nix
+++ b/pkgs/custom-neovim/default.nix
@@ -41,6 +41,7 @@ in pkgs.neovim.override {
vim-sandwich
tabular
far
+ ultisnips
# git integration
vim-gitgutter