mirror of
https://git.in.rschanz.org/ryan77627/guix-config.git
synced 2024-11-07 07:36:09 -05:00
Added inital neovim configs
This commit is contained in:
parent
42541a3824
commit
26b27dd9c4
3 changed files with 2889 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
"Used to overwrite table behavior in markdown files
|
||||
let b:table_mode_corner='+'
|
75
home-config/nvim/config/init.vim
Normal file
75
home-config/nvim/config/init.vim
Normal file
|
@ -0,0 +1,75 @@
|
|||
set nu rnu
|
||||
imap kj <Esc>
|
||||
set ts=4
|
||||
set sw=4
|
||||
set sts=4
|
||||
set et
|
||||
set mouse=
|
||||
|
||||
call plug#begin(stdpath('data') . '/plugged')
|
||||
"Plug 'prabirshrestha/vim-lsp'
|
||||
"Plug 'mattn/vim-lsp-settings'
|
||||
"Plug 'prabirshrestha/asyncomplete.vim'
|
||||
"Plug 'prabirshrestha/asyncomplete-lsp.vim'
|
||||
"Plug 'Yggdroot/indentLine'
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do':':TSUpdate'}
|
||||
Plug 'vim-pandoc/vim-pandoc'
|
||||
Plug 'vim-pandoc/vim-pandoc-syntax'
|
||||
Plug 'dhruvasagar/vim-table-mode'
|
||||
Plug '~/.config/nvim/after'
|
||||
Plug 'skywind3000/asyncrun.vim'
|
||||
Plug 'folke/tokyonight.nvim', {'branch':'main'}
|
||||
Plug 'nvim-lualine/lualine.nvim'
|
||||
Plug 'nvim-tree/nvim-web-devicons'
|
||||
Plug 'ms-jpq/coq_nvim', {'branch':'coq'}
|
||||
Plug 'ms-jpq/coq.artifacts', {'branch':'artifacts'}
|
||||
Plug 'nvim-orgmode/orgmode'
|
||||
call plug#end()
|
||||
|
||||
"Load Theme
|
||||
colorscheme tokyonight-night
|
||||
|
||||
"Load COQ Autocomplete
|
||||
let g:coq_settings = {'auto_start':'shut-up'}
|
||||
|
||||
"Load LuaLine, COQ, and nvim-orgmode
|
||||
lua << END
|
||||
require('lualine').setup()
|
||||
require('coq')
|
||||
require('orgmode').setup_ts_grammar()
|
||||
require('nvim-treesitter.configs').setup {
|
||||
highlight = {
|
||||
enable = true,
|
||||
additional_vim_regex_highlighting = {'org'},
|
||||
},
|
||||
ensure_installed = {'org', 'vim'},
|
||||
}
|
||||
|
||||
require('orgmode').setup({
|
||||
org_agenda_files = {'~/Sync/org/**/*'},
|
||||
org_default_notes_files = '~/Sync/org/refile.org',
|
||||
})
|
||||
|
||||
vim.opt.conceallevel = 2
|
||||
vim.opt.concealcursor = nc
|
||||
END
|
||||
|
||||
"asynccomplete Auto Complete Config
|
||||
"inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
"inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
"inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr>"
|
||||
|
||||
"vim-pandoc config
|
||||
let g:pandoc#modules#disabled = ['spell', 'folding']
|
||||
|
||||
"vim-table-mode config
|
||||
let g:table_mode_corner_corner='+'
|
||||
let g:table_mode_header_fillchar='='
|
||||
|
||||
"pandoc render and open preview
|
||||
command Pv AsyncRun zathura '%:r.pdf'
|
||||
command Rd silent exec "!pandoc -t pdf -o %:r.pdf --pdf-engine=xelatex --from=markdown+escaped_line_breaks -V geometry:margin=1in %"
|
||||
command Rr exec "!pandoc -t pdf -o %:r.pdf --pdf-engine=xelatex --from=markdown+escaped_line_breaks -V geometry:margin=1in %"
|
||||
|
||||
"Auto-rerender markdown files to pdf
|
||||
autocmd BufWritePost *.mkd :Rd
|
2812
home-config/nvim/plugin-manager/plug.vim
Normal file
2812
home-config/nvim/plugin-manager/plug.vim
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue