Last active
June 3, 2022 13:43
-
-
Save bwiggs/818534ed7b2dfa1998e20da1700dec8b to your computer and use it in GitHub Desktop.
nvim config
This file contains hidden or 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
call plug#begin() | |
" language helpers | |
Plug 'dense-analysis/ale' | |
Plug 'scrooloose/syntastic' | |
Plug 'tpope/vim-surround' | |
"Plug 'easymotion/vim-easymotion' " \\s to search for a character | |
Plug 'phaazon/hop.nvim' | |
Plug 'nvim-lualine/lualine.nvim' | |
Plug 'kyazdani42/nvim-web-devicons' | |
"Plug 'itchyny/lightline.vim' | |
"Plug 'vim-airline/vim-airline' | |
"Plug 'vim-airline/vim-airline-themes' | |
Plug 'kien/ctrlp.vim' | |
" Git | |
Plug 'airblade/vim-gitgutter' | |
Plug 'tpope/vim-fugitive' | |
" themes | |
Plug 'joshdick/onedark.vim' | |
Plug 'folke/tokyonight.nvim' | |
" rust | |
Plug 'timonv/vim-cargo' | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'rust-lang/rust.vim' | |
" golang | |
Plug 'fatih/vim-go' | |
" javascript | |
Plug 'pangloss/vim-javascript' | |
call plug#end() | |
let mapleader = "," | |
" hop config (better easy motion) | |
lua << END | |
require'hop'.setup() | |
END | |
map <leader><leader> :HopPattern<cr> | |
"let g:EasyMotion_do_mapping = 0 " Disable default mappings | |
"let g:EasyMotion_smartcase = 1 | |
"map <leader><leader> <Plug>(easymotion-sn) | |
"omap <leader><leader> <Plug>(easymotion-tn) | |
syntax on | |
set nu | |
set cul | |
set incsearch | |
set hlsearch | |
" Disable arrow keys" | |
noremap <Up> <Nop> | |
noremap <Down> <Nop> | |
noremap <Left> <Nop> | |
noremap <Right> <Nop> | |
map <Space> :noh<cr> | |
nnoremap <leader>s :w<cr> | |
set termguicolors | |
set background=dark | |
set t_Co=246 | |
let g:onedark_color_overrides = { | |
\ "background": {"gui": "#111111", "cterm": "205", "cterm16": "0"}, | |
\ "cursor_grey": {"gui": "#222222", "cterm": "185", "cterm16": "0"}, | |
\} | |
"colorscheme onedark | |
let g:tokyonight_style = "night" | |
colorscheme tokyonight | |
let g:airline_powerline_fonts = 1 | |
let g:airline_theme='onedark' | |
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 = 1 | |
let g:rustfmt_autosave = 1 | |
let g:rustfmt_emit_files = 1 | |
let g:rustfmt_fail_silently = 0 | |
lua << END | |
require('lualine').setup() | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment