Skip to content

Instantly share code, notes, and snippets.

@manowar20k
Created June 20, 2020 05:55
Show Gist options
  • Save manowar20k/73fd7aaa7d3c3858280fbb5b7d9f89fc to your computer and use it in GitHub Desktop.
Save manowar20k/73fd7aaa7d3c3858280fbb5b7d9f89fc to your computer and use it in GitHub Desktop.
" (_)_ __ (_) |___ _(_)_ __ ___
" | | '_ \| | __\ \ / / | '_ ` _ \
" | | | | | | |_ \ V /| | | | | | |
" |_|_| |_|_|\__(_)_/ |_|_| |_| |_|
"
" Yes I unironically put a Figlet in a config file.
call plug#begin('~/.local/share/nvim/plugins')
Plug 'scrooloose/nerdtree'
Plug 'lukesmithxyz/vimling'
Plug 'lervag/vimtex'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'vimwiki/vimwiki'
Plug 'mattn/emmet-vim'
Plug 'junegunn/goyo.vim'
Plug 'rust-lang/rust.vim'
Plug 'raphamorim/lucario'
Plug 'xuhdev/vim-latex-live-preview'
Plug 'jalvesaq/Nvim-R'
Plug 'alvan/vim-closetag'
"Plug 'kovetsky/sxhkd.vim'
Plug 'neomutt/neomutt.vim'
Plug 'fedorenchik/qt-support.vim'
Plug 'vim-syntastic/syntastic'
Plug 'ap/vim-css-color'
Plug 'dense-analysis/ale'
" Plug 'SirVer/ultisnips'
Plug 'junegunn/limelight.vim'
Plug 'greyblake/vim-preview'
call plug#end()
" Misc settings
syntax enable
set number relativenumber
colorscheme lucario
" NERDTREE
" Automatically start Nerdtree if Vim starts up w/o any files specified.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
" Opens Nerdtree if Vim opens a directory instead of a file
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
" Ctrl + N opens Nerdtree
map <C-n> :NERDTreeToggle<CR>
" VIMLING
" Not sure exactly what this does, but it looks useful.
nm <leader><leader>d :call ToggleDeadKeys()<CR>
imap <leader><leader>d <esc>:call ToggleDeadKeys()<CR>a
nm <leader><leader>i :call ToggleIPA()<CR>
imap <leader><leader>i <esc>:call ToggleIPA()<CR>a
" What is this for?
" nm <F8> :call ToggleProse()<CR>
" AIRLINE
let g:airlinet_theme='owo'
" EMMET
" Activates Emmet only for HTML/CSS
let g:user_emmet_install_global = 0
autocmd FileType html,css EmmetInstall
" GOYO
" Goyo 120x30
" LIMELIGHT
" Color name (:help cterm-colors) or ANSI code
let g:limelight_conceal_ctermfg = 'gray'
let g:limelight_conceal_ctermfg = 240
" Color name (:help gui-colors) or RGB color
let g:limelight_conceal_guifg = 'DarkGray'
let g:limelight_conceal_guifg = '#777777'
" Default: 0.5
let g:limelight_default_coefficient = 0.7
" Number of preceding/following paragraphs to include (default: 0)
let g:limelight_paragraph_span = 1
" Beginning/end of paragraph
" When there's no empty line between the paragraphs
" and each paragraph starts with indentation
let g:limelight_bop = '^\s'
let g:limelight_eop = '\ze\n^\s'
" Highlighting priority (default: 10)
" Set it to -1 not to overrule hlsearch
let g:limelight_priority = -1
autocmd! User GoyoEnter Limelight
autocmd! User GoyoLeave Limelight!
" VIM-LATEX-LIVE-PREVIEW
let g:livepreview_previewer = 'zathura'
let g:livepreview_engine = 'xelatex'
let g:livepreview_cursorhold_recompile = 0
" VIM-CLOSETAG
let g:closetag_filenames = '*.html,*.xhtml,*.phtml'
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx'
" SYNTASTIC
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment