syntax enable let mapleader = " " set autoindentz set preserveindent set copyindent set shell=~/.nix-profile/bin/fish " Set Colors if (has("termguicolors")) set termguicolors endif hi Comment cterm=italic " Relative numbers and when not in buffer set absolute numbers set number relativenumber augroup numbertoggle autocmd! autocmd BufEnter,FocusGained,InsertLeave * set relativenumber autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber augroup END " Disable EX Mode map q: " Disable EX Mode nnoremap Q " Airline let g:airline#extensions#clock#format = '%I:%M:%S %X' " nnoremap ft Telescope help_tags " let g:python_host_prog = '~/.nvim.pythonenv2/bin/python' if exists("$VIRTUAL_ENV") let g:python3_host_prog=substitute(system("which -a python3 | head -n2 | tail -n1"), "\n", '', 'g') else let g:python3_host_prog=substitute(system("which python3"), "\n", '', 'g') endif " Line Numbers set number relativenumber " Turn line numbering on at startup noremap :set invnumber invrelativenumber "Tagbar " " Syntax Colors function! SynStack () for i1 in synstack(line("."), col(".")) let i2 = synIDtrans(i1) let n1 = synIDattr(i1, "name") let n2 = synIDattr(i2, "name") echo n1 "->" n2 endfor endfunction " Guten Tags " set statusline+=%{gutentags#statusline()} " Indent Line let g:indentLine_char = '│' " vim-test nmap t. :TestNearest nmap tf :TestFile nmap ts :TestSuite let test#strategy = "neovim" " Mypy nmap mp :Mypy " Rust tags autocmd BufRead *.rs :setlocal tags=./rusty-tags.vi;/ autocmd BufWritePost *.rs :silent! exec "!rusty-tags vi --quiet --start-dir=" . expand('%:p:h') . "&" | redraw!