syntax enable let mapleader = " " call plug#begin('~/.vim/plugged') Plug 'atelierbram/vim-colors_atelier-schemes' Plug 'robertmeta/nofrils' Plug 'vim-test/vim-test' Plug 'hashivim/vim-terraform' Plug 'Yggdroot/indentLine' Plug 'rmagatti/auto-session' Plug 'rmagatti/session-lens' Plug 'ludovicchabant/vim-gutentags' Plug 'ervandew/supertab' Plug 'preservim/nerdtree' Plug 'liuchengxu/space-vim-dark' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'mhinz/vim-startify' Plug 'jeetsukumaran/vim-buffergator' Plug 'ap/vim-buftabline' Plug 'airblade/vim-gitgutter' Plug 'majutsushi/tagbar' Plug 'vim-airline/vim-airline' Plug 'enricobacis/vim-airline-clock' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' Plug 'thoughtbot/vim-rspec' Plug 'voldikss/vim-floaterm' Plug 'fatih/vim-go' Plug 'folke/which-key.nvim' Plug 'whatyouhide/vim-gotham' Plug 'nanotech/jellybeans.vim' Plug 'sickill/vim-monokai' Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'flebel/vim-mypy', { 'for': 'python', 'branch': 'bugfix/fast_parser_is_default_and_only_parser' } Plug 'tpope/vim-fugitive' Plug 'tpope/vim-rhubarb' Plug 'psf/black', { 'branch': 'stable' } Plug 'gf3/peg.vim' call plug#end() lua << EOF require("which-key").setup { } EOF map :NERDTreeToggle map v :WhichKey set tabstop=2 set shell=/usr/local/bin/fish set shiftwidth=2 set expandtab set hidden set background=dark set autoindent set preserveindent set copyindent set mouse= " Set Colors if (has("termguicolors")) set termguicolors endif colorscheme Atelier_SulphurpoolDark 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 nnoremap :bnext nnoremap :bprev nmap bq :bp bd # " Airline let g:airline#extensions#clock#format = '%I:%M:%S %X' " Find files using Telescope command-line sugar. nnoremap ff Telescope find_files nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap fa Ag " nnoremap ft Telescope help_tags "lua << EOF "require('telescope').setup{ " file_ignore_patterns = {"node_modules","./venv/"}, "} "EOF " RSpec.vim mappings map rt :call RunCurrentSpecFile() map rs :call RunNearestSpec() map rl :call RunLastSpec() map ra :call RunAllSpecs() " 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 " Floaterm let g:floaterm_keymap_toggle = '' let g:floaterm_width = 0.9 let g:floaterm_height = 0.9 " Line Numbers set number relativenumber " Turn line numbering on at startup noremap :set invnumber invrelativenumber "Tagbar " noremap :Tagbar let g:tagbar_autofocus=1 " Session Lens lua < :SearchSession " 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 " TreeSitter lua <gb :.GBrowse " vim-test nmap t. :TestNearest nmap tf :TestFile nmap ts :TestSuite let test#strategy = "neovim" " Mypy nmap mp :Mypy let g:indentLine_setConceal = 0