dotfiles-linux-bash/config/nvim/init.vim

75 lines
1.8 KiB
VimL
Raw Normal View History

syntax enable
2020-05-06 14:23:54 +00:00
let mapleader = " "
call plug#begin('~/.vim/plugged')
2021-11-04 00:38:25 +00:00
Plug 'ervandew/supertab'
Plug 'preservim/nerdtree'
2021-10-30 00:43:31 +00:00
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'
2021-11-04 00:38:25 +00:00
Plug 'ap/vim-buftabline'
Plug 'airblade/vim-gitgutter'
2021-11-04 00:38:25 +00:00
Plug 'majutsushi/tagbar'
Plug 'vim-airline/vim-airline'
2021-10-29 21:25:22 +00:00
" Plug 'ctrlpvim/ctrlp.vim' " Replaced with telescope
2021-11-04 00:38:25 +00:00
Plug 'enricobacis/vim-airline-clock'
2021-10-29 21:25:22 +00:00
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
2020-05-06 14:23:54 +00:00
call plug#end()
map <C-o> :NERDTreeToggle<CR>
2020-05-06 14:23:54 +00:00
set tabstop=2
set shell=/bin/bash
set shiftwidth=2
set expandtab
set hidden
set background=dark
2021-10-30 00:43:31 +00:00
set autoindent
set preserveindent
set copyindent
" Set Colors
if (has("termguicolors"))
set termguicolors
endif
colorscheme space-vim-dark
hi Comment cterm=italic
2020-05-06 14:23:54 +00:00
" Relative numbers and when not in buiffer set absolute numbers
set number relativenumber
augroup numbertoggle
autocmd!
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
augroup END
" Colors
2021-10-30 00:43:31 +00:00
" Disable EX Mode
map q: <Nop>
" Disable EX Mode
nnoremap Q <nop>
" Search with Ag
2020-05-06 14:23:54 +00:00
nnoremap <Leader>/ :Ag<CR>
nnoremap <C-J> :bnext<CR>
nnoremap <C-K> :bprev<CR>
nmap <leader>bq :bp <BAR> bd #<CR>
"Clock
let g:airline#extensions#clock#format = '%I:%M:%S %X'
2021-10-29 21:25:22 +00:00
" Find files using Telescope command-line sugar.
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
2021-10-30 00:43:31 +00:00
2021-11-04 00:38:25 +00:00
let g:python_host_prog = '/home/tyrel/.nvim.pythonenv2/bin/python'
let g:python3_host_prog = '/home/tyrel/.nvim.pythonenv/bin/python'
2021-10-30 00:43:31 +00:00