diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2020-11-17 23:57:41 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2020-11-17 23:57:41 -0500 |
commit | 13429d1b0227160157ec2e66f411321c94af2cbd (patch) | |
tree | 7aee4fa28a9c2e66c290cdbf73101573ded20801 /.config/nvim/ftplugin | |
parent | d8e55b19054d1d8c9fbf88e504dd2f608db983a7 (diff) |
Starting vim spring cleanup
Diffstat (limited to '.config/nvim/ftplugin')
-rw-r--r-- | .config/nvim/ftplugin/csv.vim | 0 | ||||
-rw-r--r-- | .config/nvim/ftplugin/go.vim | 17 | ||||
-rw-r--r-- | .config/nvim/ftplugin/python.vim | 0 | ||||
-rw-r--r-- | .config/nvim/ftplugin/r.vim | 4 | ||||
-rw-r--r-- | .config/nvim/ftplugin/rmd.vim | 6 | ||||
-rw-r--r-- | .config/nvim/ftplugin/rnoweb.vim | 8 | ||||
-rw-r--r-- | .config/nvim/ftplugin/tex.vim | 0 |
7 files changed, 35 insertions, 0 deletions
diff --git a/.config/nvim/ftplugin/csv.vim b/.config/nvim/ftplugin/csv.vim new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/nvim/ftplugin/csv.vim diff --git a/.config/nvim/ftplugin/go.vim b/.config/nvim/ftplugin/go.vim new file mode 100644 index 0000000..9d2ab4e --- /dev/null +++ b/.config/nvim/ftplugin/go.vim @@ -0,0 +1,17 @@ +" Go deoplete +let g:deoplete#sources#go#gocode_binary = '$GOPATH/bin/gocode' +" GoRun Split Reuse +function! ReuseVimGoTerm(cmd) abort + for w in nvim_list_wins() + if "goterm" == nvim_buf_get_option(nvim_win_get_buf(w), 'filetype') + call nvim_win_close(w, v:true) + break + endif + endfor + execute a:cmd +endfunction +let g:go_term_enabled = 1 +let g:go_term_mode = "silent keepalt rightbelow 35 vsplit" +let g:go_def_reuse_buffer = 1 +autocmd FileType go nmap <leader>r :call ReuseVimGoTerm('GoRun')<Return> + diff --git a/.config/nvim/ftplugin/python.vim b/.config/nvim/ftplugin/python.vim new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/nvim/ftplugin/python.vim diff --git a/.config/nvim/ftplugin/r.vim b/.config/nvim/ftplugin/r.vim new file mode 100644 index 0000000..309483b --- /dev/null +++ b/.config/nvim/ftplugin/r.vim @@ -0,0 +1,4 @@ +" Nvim-R +let R_rconsole_width = 0 +let R_openpdf = 0 + diff --git a/.config/nvim/ftplugin/rmd.vim b/.config/nvim/ftplugin/rmd.vim new file mode 100644 index 0000000..fae453d --- /dev/null +++ b/.config/nvim/ftplugin/rmd.vim @@ -0,0 +1,6 @@ +" Nvim-R +let R_rconsole_width = 0 +let R_openpdf = 0 +au BufWritePost *.rmd silent! :call RWeave("nobib", 1, 1) +au VimLeave *.rmd !texclear % + diff --git a/.config/nvim/ftplugin/rnoweb.vim b/.config/nvim/ftplugin/rnoweb.vim new file mode 100644 index 0000000..f4b7453 --- /dev/null +++ b/.config/nvim/ftplugin/rnoweb.vim @@ -0,0 +1,8 @@ +autocmd BufEnter * :UltiSnipsAddFiletypes tex.r + +" Nvim-R +let R_rconsole_width = 0 +let R_openpdf = 0 +au BufWritePost *.rnw, silent! :call RWeave("nobib", 1, 1) +au VimLeave *.rnw !texclear % + diff --git a/.config/nvim/ftplugin/tex.vim b/.config/nvim/ftplugin/tex.vim new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/nvim/ftplugin/tex.vim |