2023-04-20 22:15:28 +00:00
|
|
|
set nu rnu
|
|
|
|
imap kj <Esc>
|
|
|
|
set ts=4
|
|
|
|
set sw=4
|
|
|
|
set sts=4
|
|
|
|
set et
|
|
|
|
set mouse=
|
2023-09-09 04:11:03 +00:00
|
|
|
set cursorline
|
|
|
|
set cc=79
|
2023-04-20 22:15:28 +00:00
|
|
|
|
|
|
|
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 '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'}
|
2023-09-04 15:32:42 +00:00
|
|
|
Plug 'williamboman/mason.nvim'
|
2023-09-04 15:48:55 +00:00
|
|
|
Plug 'williamboman/mason-lspconfig.nvim'
|
|
|
|
Plug 'neovim/nvim-lspconfig'
|
2024-04-25 02:37:37 +00:00
|
|
|
"Plug 'nvim-orgmode/orgmode'
|
2023-10-26 18:55:39 +00:00
|
|
|
Plug 'ggandor/leap.nvim'
|
2023-11-03 21:28:01 +00:00
|
|
|
Plug 'xiyaowong/transparent.nvim'
|
2023-04-20 22:15:28 +00:00
|
|
|
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')
|
2023-11-03 21:28:01 +00:00
|
|
|
require("transparent")
|
2023-09-04 15:32:42 +00:00
|
|
|
require("mason").setup()
|
2023-09-04 17:26:42 +00:00
|
|
|
require("mason-lspconfig").setup {
|
|
|
|
ensure_installed = { "pyright" },
|
|
|
|
}
|
2023-09-04 15:48:55 +00:00
|
|
|
|
2023-10-26 18:55:39 +00:00
|
|
|
require('leap').add_default_mappings()
|
|
|
|
|
2023-09-04 15:48:55 +00:00
|
|
|
require("mason-lspconfig").setup_handlers {
|
|
|
|
function (server_name)
|
|
|
|
require("lspconfig")[server_name].setup {}
|
|
|
|
end,
|
|
|
|
}
|
|
|
|
|
2023-04-20 22:15:28 +00:00
|
|
|
require('nvim-treesitter.configs').setup {
|
|
|
|
highlight = {
|
|
|
|
enable = true,
|
|
|
|
additional_vim_regex_highlighting = {'org'},
|
|
|
|
},
|
2024-04-25 02:37:37 +00:00
|
|
|
ensure_installed = {'vim', 'python'},
|
2023-04-20 22:15:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
vim.opt.conceallevel = 2
|
|
|
|
vim.opt.concealcursor = nc
|
2023-04-25 22:56:20 +00:00
|
|
|
|
2023-05-05 05:22:35 +00:00
|
|
|
--local lspconfig = require('lspconfig')
|
2023-04-20 22:15:28 +00:00
|
|
|
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'
|
2023-08-29 17:45:30 +00:00
|
|
|
command Rd silent exec "!pandoc -t pdf -o %:r.pdf --from=markdown+escaped_line_breaks -V geometry:margin=1in %"
|
|
|
|
command Rr exec "!pandoc -t pdf -o %:r.pdf --from=markdown+escaped_line_breaks -V geometry:margin=1in %"
|
2023-04-20 22:15:28 +00:00
|
|
|
|
|
|
|
"Auto-rerender markdown files to pdf
|
|
|
|
autocmd BufWritePost *.mkd :Rd
|