Last active
June 14, 2022 18:19
-
-
Save KYDronePilot/af0068171813c6c36d9dfa53d22f5dff to your computer and use it in GitHub Desktop.
My neovim init.vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ***************************************************************************** | |
" init.vim - my neovim config | |
" | |
" Copyright (c) 2022 Michael Galliers | |
" ***************************************************************************** | |
" ----------------------------------------------------------------------------- | |
" Global settings | |
" ----------------------------------------------------------------------------- | |
" Show whitespace | |
set list | |
set listchars=tab:→\ ,trail:·,space:· | |
" Enable text column | |
set colorcolumn=80 | |
hi ColorColumn ctermbg=lightgrey guibg=lightgrey | |
" Syntax highlighting | |
hi Comment ctermfg=Gray cterm=italic | |
hi LineNr ctermfg=Gray | |
hi String ctermfg=Green | |
hi Number ctermfg=Yellow | |
hi Conditional ctermfg=Magenta cterm=italic | |
hi Repeat ctermfg=Magenta cterm=italic | |
hi Label ctermfg=Magenta | |
hi Keyword ctermfg=Magenta cterm=italic | |
hi Exception ctermfg=Magenta cterm=italic | |
hi Statement ctermfg=Magenta cterm=italic | |
hi Include ctermfg=Magenta cterm=italic | |
hi Function ctermfg=Cyan cterm=italic | |
hi Operator ctermfg=Cyan | |
hi Type ctermfg=Blue | |
" Python specific | |
hi pythonTripleQuotes ctermfg=Cyan | |
" Indent - 4 spaces | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" Numbered lines | |
set number | |
" ----------------------------------------------------------------------------- | |
" Language-specific settings | |
" ----------------------------------------------------------------------------- | |
" Python | |
autocmd FileType python setlocal colorcolumn=88,100 | |
" Netrw | |
autocmd FileType netrw setlocal colorcolumn="" | |
autocmd FileType netrw setlocal nolist | |
" Markdown | |
autocmd FileType markdown setlocal colorcolumn="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment