summaryrefslogtreecommitdiff
path: root/home-config/nvim/config/init.vim
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2023-04-20 18:15:28 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2023-04-20 18:15:28 -0400
commit26b27dd9c469ea7fb4fe3ba312781fd225573342 (patch)
tree8406cd54fcceac734162e327b6b9fe3cacbc78e5 /home-config/nvim/config/init.vim
parent42541a382419b41721e840b7a42b6e4f5b22ab88 (diff)
Added inital neovim configs
Diffstat (limited to 'home-config/nvim/config/init.vim')
-rw-r--r--home-config/nvim/config/init.vim75
1 files changed, 75 insertions, 0 deletions
diff --git a/home-config/nvim/config/init.vim b/home-config/nvim/config/init.vim
new file mode 100644
index 0000000..1e2cbea
--- /dev/null
+++ b/home-config/nvim/config/init.vim
@@ -0,0 +1,75 @@
1set nu rnu
2imap kj <Esc>
3set ts=4
4set sw=4
5set sts=4
6set et
7set mouse=
8
9call plug#begin(stdpath('data') . '/plugged')
10"Plug 'prabirshrestha/vim-lsp'
11"Plug 'mattn/vim-lsp-settings'
12"Plug 'prabirshrestha/asyncomplete.vim'
13"Plug 'prabirshrestha/asyncomplete-lsp.vim'
14"Plug 'Yggdroot/indentLine'
15Plug 'nvim-treesitter/nvim-treesitter', {'do':':TSUpdate'}
16Plug 'vim-pandoc/vim-pandoc'
17Plug 'vim-pandoc/vim-pandoc-syntax'
18Plug 'dhruvasagar/vim-table-mode'
19Plug '~/.config/nvim/after'
20Plug 'skywind3000/asyncrun.vim'
21Plug 'folke/tokyonight.nvim', {'branch':'main'}
22Plug 'nvim-lualine/lualine.nvim'
23Plug 'nvim-tree/nvim-web-devicons'
24Plug 'ms-jpq/coq_nvim', {'branch':'coq'}
25Plug 'ms-jpq/coq.artifacts', {'branch':'artifacts'}
26Plug 'nvim-orgmode/orgmode'
27call plug#end()
28
29"Load Theme
30colorscheme tokyonight-night
31
32"Load COQ Autocomplete
33let g:coq_settings = {'auto_start':'shut-up'}
34
35"Load LuaLine, COQ, and nvim-orgmode
36lua << END
37require('lualine').setup()
38require('coq')
39require('orgmode').setup_ts_grammar()
40require('nvim-treesitter.configs').setup {
41 highlight = {
42 enable = true,
43 additional_vim_regex_highlighting = {'org'},
44 },
45 ensure_installed = {'org', 'vim'},
46}
47
48require('orgmode').setup({
49 org_agenda_files = {'~/Sync/org/**/*'},
50 org_default_notes_files = '~/Sync/org/refile.org',
51})
52
53vim.opt.conceallevel = 2
54vim.opt.concealcursor = nc
55END
56
57"asynccomplete Auto Complete Config
58"inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
59"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
60"inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"
61
62"vim-pandoc config
63let g:pandoc#modules#disabled = ['spell', 'folding']
64
65"vim-table-mode config
66let g:table_mode_corner_corner='+'
67let g:table_mode_header_fillchar='='
68
69"pandoc render and open preview
70command Pv AsyncRun zathura '%:r.pdf'
71command Rd silent exec "!pandoc -t pdf -o %:r.pdf --pdf-engine=xelatex --from=markdown+escaped_line_breaks -V geometry:margin=1in %"
72command Rr exec "!pandoc -t pdf -o %:r.pdf --pdf-engine=xelatex --from=markdown+escaped_line_breaks -V geometry:margin=1in %"
73
74"Auto-rerender markdown files to pdf
75autocmd BufWritePost *.mkd :Rd