diff options
author | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-04-20 18:15:28 -0400 |
---|---|---|
committer | Ryan Schanzenbacher <ryan@rschanz.org> | 2023-04-20 18:15:28 -0400 |
commit | 26b27dd9c469ea7fb4fe3ba312781fd225573342 (patch) | |
tree | 8406cd54fcceac734162e327b6b9fe3cacbc78e5 /home-config/nvim/config/init.vim | |
parent | 42541a382419b41721e840b7a42b6e4f5b22ab88 (diff) |
Added inital neovim configs
Diffstat (limited to 'home-config/nvim/config/init.vim')
-rw-r--r-- | home-config/nvim/config/init.vim | 75 |
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 @@ | |||
1 | set nu rnu | ||
2 | imap kj <Esc> | ||
3 | set ts=4 | ||
4 | set sw=4 | ||
5 | set sts=4 | ||
6 | set et | ||
7 | set mouse= | ||
8 | |||
9 | call 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' | ||
15 | Plug 'nvim-treesitter/nvim-treesitter', {'do':':TSUpdate'} | ||
16 | Plug 'vim-pandoc/vim-pandoc' | ||
17 | Plug 'vim-pandoc/vim-pandoc-syntax' | ||
18 | Plug 'dhruvasagar/vim-table-mode' | ||
19 | Plug '~/.config/nvim/after' | ||
20 | Plug 'skywind3000/asyncrun.vim' | ||
21 | Plug 'folke/tokyonight.nvim', {'branch':'main'} | ||
22 | Plug 'nvim-lualine/lualine.nvim' | ||
23 | Plug 'nvim-tree/nvim-web-devicons' | ||
24 | Plug 'ms-jpq/coq_nvim', {'branch':'coq'} | ||
25 | Plug 'ms-jpq/coq.artifacts', {'branch':'artifacts'} | ||
26 | Plug 'nvim-orgmode/orgmode' | ||
27 | call plug#end() | ||
28 | |||
29 | "Load Theme | ||
30 | colorscheme tokyonight-night | ||
31 | |||
32 | "Load COQ Autocomplete | ||
33 | let g:coq_settings = {'auto_start':'shut-up'} | ||
34 | |||
35 | "Load LuaLine, COQ, and nvim-orgmode | ||
36 | lua << END | ||
37 | require('lualine').setup() | ||
38 | require('coq') | ||
39 | require('orgmode').setup_ts_grammar() | ||
40 | require('nvim-treesitter.configs').setup { | ||
41 | highlight = { | ||
42 | enable = true, | ||
43 | additional_vim_regex_highlighting = {'org'}, | ||
44 | }, | ||
45 | ensure_installed = {'org', 'vim'}, | ||
46 | } | ||
47 | |||
48 | require('orgmode').setup({ | ||
49 | org_agenda_files = {'~/Sync/org/**/*'}, | ||
50 | org_default_notes_files = '~/Sync/org/refile.org', | ||
51 | }) | ||
52 | |||
53 | vim.opt.conceallevel = 2 | ||
54 | vim.opt.concealcursor = nc | ||
55 | END | ||
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 | ||
63 | let g:pandoc#modules#disabled = ['spell', 'folding'] | ||
64 | |||
65 | "vim-table-mode config | ||
66 | let g:table_mode_corner_corner='+' | ||
67 | let g:table_mode_header_fillchar='=' | ||
68 | |||
69 | "pandoc render and open preview | ||
70 | command Pv AsyncRun zathura '%:r.pdf' | ||
71 | command Rd silent exec "!pandoc -t pdf -o %:r.pdf --pdf-engine=xelatex --from=markdown+escaped_line_breaks -V geometry:margin=1in %" | ||
72 | command 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 | ||
75 | autocmd BufWritePost *.mkd :Rd | ||