aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/init.vim
blob: d71e897a46ee5f645bbc4c805bde93b1fb81bab9 (plain)
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
call plug#begin('~/.local/share/nvim/plugged') 
Plug 'itchyny/lightline.vim'
Plug 'Yggdroot/indentLine'
Plug 'catppuccin/nvim', { 'as': 'catppuccin' }
Plug 'nvim-lualine/lualine.nvim'
Plug 'nvim-tree/nvim-web-devicons'
Plug 'lervag/vimtex'
call plug#end()

" line numbers
set number
set nu

" disable word wrapping
set nowrap

colorscheme catppuccin
set termguicolors
syntax enable
highlight Normal ctermbg=NONE guibg=NONE
highlight NormalNC ctermbg=NONE guibg=NONE

lua << END
require('lualine').setup {
    options = {
      theme = "catppuccin-mocha",
    }
}
END

" for tab stop
filetype plugin indent on
" On pressing tab, insert 2 spaces
set expandtab
" show existing tab with 2 spaces width
set tabstop=2
set softtabstop=2
" when indenting with '>', use 2 spaces width
set shiftwidth=2

" vimtex config
let g:vimtex_view_method = 'zathura'
let g:vimtex_compiler_method = 'generic'
let g:vimtex_compiler_generic = {
  \ 'command': 'pdflatex -interaction=nonstopmode -synctex=1 -file-line-error %f',
  \ 'callback': 'vimtex#compiler#callback(!v:shell_error)',
  \ 'options': {
      \ 'continuous': '-shell-escape',
      \ 'single_shot': '-shell-escape'
  \ },
  \ 'env': {},
  \ 'append_args': []
  \ }