summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/ftplugin')
-rw-r--r--.config/nvim/ftplugin/csv.vim0
-rw-r--r--.config/nvim/ftplugin/go.vim17
-rw-r--r--.config/nvim/ftplugin/python.vim0
-rw-r--r--.config/nvim/ftplugin/r.vim4
-rw-r--r--.config/nvim/ftplugin/rmd.vim6
-rw-r--r--.config/nvim/ftplugin/rnoweb.vim8
-rw-r--r--.config/nvim/ftplugin/tex.vim0
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