-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
67 lines (60 loc) · 2.38 KB
/
init.vim
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
if empty(glob('$XDG_DATA_HOME'))
let $XDG_DATA_HOME = glob('$HOME/.local/share')
endif
if empty(glob('$XDG_CONFIG_HOME'))
let $XDG_CONFIG_HOME = glob('$HOME/.config')
endif
if empty(glob('$XDG_DATA_HOME/nvimpager/site/autoload/plug.vim'))
silent !curl -fLo $XDG_DATA_HOME/nvimpager/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
au VimEnter * PlugInstall --sync | source $XDG_CONFIG_HOME/nvimpager/init.vim
endif
call plug#begin('$XDG_DATA_HOME/nvimpager/plug')
Plug 'deviantfero/wpgtk.vim'
Plug 'bluz71/vim-moonfly-colors'
Plug 'morhetz/gruvbox'
"" Syntax Highlighting
" more language support
Plug 'sheerun/vim-polyglot'
Plug 'mboughaba/i3config.vim'
Plug 'VebbNix/lf-vim'
Plug 'tridactyl/vim-tridactyl'
Plug 'durcor/arm-syntax-vim'
" Highlight matching parentheses
Plug 'luochen1990/rainbow'
let g:rainbow_active = 1
" Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'vimwiki/vimwiki'
call plug#end()
colorscheme wpgtk
" lua require'nvim-treesitter.configs'.setup{ensure_installed="maintained",highlight={enable=true,additional_vim_regex_highlighting=true}}
"
" File-type specific configuration
au BufRead *.hex se ft=c
" Better systemd/config file syntax highlighting
au BufRead *.conf,*.cfg,*.service*,*.timer*,*.godot,config,*rc,*.info,*.cir,*.CIR,*.cmp,*.import se ft=dosini
au BufRead *.s,*.lst se ft=arm
" I need syntax highlighting for my natural joins
let g:sql_type_default = 'pgsql'
au BufRead *.css.* se ft=css
au BufRead *.log*,*.txt se ft=log
au BufRead CMakeLists.txt se ft=cmake
au BufRead README,LICENSE,TODO,NEWS,FAQ,LEGACY se ft=markdown
au BufRead *.*patch,*.diff se ft=gitsendemail
au BufRead .gitattributes se ft=gitignore
au BufRead *.rasi se ft=yaml
au BufRead *.fut se ft=ocaml
au BufRead *.python* se ft=python
au BufRead *.reg se ft=registry
au BufRead *.mesh se ft=glsl
au BufRead *.rbxm se ft=xml
au BufRead *.vcf se ft=ls
" use ls syntax highlighting for vimv buffers
au BufRead /tmp/vimv.* se ft=ls | normal $T/
" jump straight to the file name in vimv if you are given the ability to edit
" the entire path (such as when called inside of lf)
" " Edit extension of current file in vimv
" autocmd BufRead /tmp/vimv.ext* normal $T.C
" spell checking for LaTeX, markdown, plaintext, and git commits
" au FileType tex,markdown,gitcommit,vimwiki,text setlocal spell spelllang=en_us,es
syntax on
se nocompatible