1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
" Plugins{{{
call plug#begin()
Plug 'neovim/nvim-lspconfig'
Plug 'Shougo/echodoc.vim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'tpope/vim-surround'
Plug 'tpope/vim-repeat'
Plug 'NLKNguyen/papercolor-theme'
Plug 'LnL7/vim-nix'
Plug 'fatih/vim-go'
Plug 'lervag/vimtex'
call plug#end()
" }}}
" Completion{{{
set completeopt+=menuone
set completeopt+=noselect
if has('nvim')
let g:echodoc#enable_at_startup = 1
let g:echodoc#type = 'virtual'
endif
" Close completion window
autocmd CompleteDone * pclose
colorscheme PaperColor
lua << EOF
local lspconfig = require("lspconfig")
lspconfig.clangd.setup {}
vim.api.nvim_create_autocmd("LspAttach", {
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
callback = function (ev)
vim.bo[ev.buf].omnifunc = "v:lua.vim.lsp.omnifunc"
end,
})
EOF
"}}}
" Latex {{{
let g:vimtex_view_method = 'zathura'
let g:vimtex_quickfix_open_on_warning = 0
"}}}
" Tree sitter {{{
lua << EOF
require'nvim-treesitter.configs'.setup {
ensure_installed = { "c", "lua", "vim", "rust", "help" },
highlight = {
enable = true,
disable = { "latex" },
},
incremental_selection = {
enable = true,
},
}
EOF
" }}}
|