From 1edcd86cb230ec392d05a0c50adb88e88914975b Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 20 Jan 2023 21:09:20 +0000 Subject: Include an "after" directory in the rtp --- init.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.vim b/init.vim index 0e22d1d..bb0a74a 100644 --- a/init.vim +++ b/init.vim @@ -7,6 +7,9 @@ else let hostname='unknown' endif +let g:vsnip_snippet_dir = "~/.config/nvim/snippets" +let g:vsnip_snippet_dirs = ["~/.config/nvim/local/snippets"] + call plug#begin() if filereadable(printf('%s/.config/nvim/local-plug.vim', $HOME)) @@ -68,6 +71,7 @@ noremap Y y$ noremap ú FormatCode noremap p (SynStack) noremap ff Telescope find_files +inoremap (vsnip-expand) augroup InitVim @@ -98,6 +102,10 @@ if filereadable(printf('%s/.config/nvim/local.vim', $HOME)) exec "source " . printf('%s/.config/nvim/local.vim', $HOME) endif +if isdirectory(printf('%s/.config/nvim/after', $HOME)) + exec "set rtp+=" . printf('%s/.config/nvim/after', $HOME) +endif + noremap nt NvimTreeToggle noremap NE :e =expand('%:h')/ @@ -116,6 +124,9 @@ set textwidth=80 " Opens a terminal in the directory of the current file. command! TERM exec "term sh -c 'cd " . expand('%:p:h') . " && exec $SHELL'" +" W = w. I often click when typing :w +command! W w + let g:indentLine_char = '┆' lua << EOF -- CiderLSP -- cgit