From 5c35f8f226e19ba521fa3f8d03dc05b7204d54a4 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Thu, 4 Jan 2018 18:24:00 -0800 Subject: [PATCH] neosnippets --- .gitmodules | 3 +++ neovim/init.vim | 7 ++++++- neovim/neosnippets | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) create mode 160000 neovim/neosnippets diff --git a/.gitmodules b/.gitmodules index 79c3b74..623eb4d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -34,3 +34,6 @@ [submodule "tako/plugins"] path = tako/plugins url = git@gitlab.com:jdkaplan/tako-plugins.git +[submodule "neovim/neosnippets"] + path = neovim/neosnippets + url = https://github.com/Shougo/neosnippet-snippets.git diff --git a/neovim/init.vim b/neovim/init.vim index 792678e..6b13ca5 100644 --- a/neovim/init.vim +++ b/neovim/init.vim @@ -10,6 +10,7 @@ if dein#load_state('~/.config/nvim/plugins') call dein#add('Shougo/dein.vim') call dein#add('Shougo/denite.nvim') call dein#add('Shougo/deoplete.nvim') + call dein#add('Shougo/neosnippet.vim') call dein#add('fatih/vim-go') call dein#add('kana/vim-textobj-user') call dein#add('glts/vim-textobj-comment') @@ -132,7 +133,7 @@ let g:go_highlight_operators = 1 let g:go_highlight_structs = 1 let g:go_highlight_types = 1 let g:go_fmt_command = "goimports" - +let g:go_snippet_engine = "neosnippet" let g:buffergator_viewport_split_policy = 'B' let g:buffergator_autoupdate = 1 @@ -141,3 +142,7 @@ let g:buffergator_display_regime = 'bufname' let g:buffergator_show_full_directory_path = 0 let g:buffergator_suppress_keymaps = 1 map b :BuffergatorToggle + +imap (neosnippet_expand_or_jump) +smap (neosnippet_expand_or_jump) +xmap (neosnippet_expand_target) diff --git a/neovim/neosnippets b/neovim/neosnippets new file mode 160000 index 0000000..8dbb785 --- /dev/null +++ b/neovim/neosnippets @@ -0,0 +1 @@ +Subproject commit 8dbb78599984140c50418d3dd23d0de4c8f13e74