-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
70 changed files
with
2,746 additions
and
1,052 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
/vim/.netrwhist | ||
/alacritty.yml | ||
/prompt.sh | ||
/nvim/plugged |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +0,0 @@ | ||
[submodule "vim/bundle/css"] | ||
path = vim/bundle/css | ||
url = https://github.com/JulesWang/css.vim | ||
[submodule "vim/bundle/html5"] | ||
path = vim/bundle/html5 | ||
url = https://github.com/othree/html5.vim | ||
[submodule "vim/bundle/commentary"] | ||
path = vim/bundle/commentary | ||
url = https://github.com/tpope/vim-commentary | ||
[submodule "vim/bundle/jinja"] | ||
path = vim/bundle/jinja | ||
url = https://github.com/mitsuhiko/vim-jinja | ||
[submodule "vim/bundle/python-combined"] | ||
path = vim/bundle/python-combined | ||
url = https://github.com/mitsuhiko/vim-python-combined | ||
[submodule "vim/bundle/markdown"] | ||
path = vim/bundle/markdown | ||
url = https://github.com/plasticboy/vim-markdown | ||
[submodule "vim/bundle/surround"] | ||
path = vim/bundle/surround | ||
url = https://github.com/tpope/vim-surround | ||
[submodule "vim/bundle/supertab"] | ||
path = vim/bundle/supertab | ||
url = https://github.com/ervandew/supertab | ||
[submodule "vim/bundle/signature"] | ||
path = vim/bundle/signature | ||
url = https://github.com/kshenoy/vim-signature.git | ||
[submodule "vim/bundle/minimap"] | ||
path = vim/bundle/minimap | ||
url = https://github.com/naddeoa/vim-visual-page-percent.git | ||
[submodule "vim/bundle/glsl"] | ||
path = vim/bundle/glsl | ||
url = https://github.com/tikhomirov/vim-glsl.git | ||
[submodule "vim/bundle/ack"] | ||
path = vim/bundle/ack | ||
url = https://github.com/mileszs/ack.vim.git | ||
[submodule "vim/bundle/ale"] | ||
path = vim/bundle/ale | ||
url = https://github.com/w0rp/ale.git | ||
[submodule "vim/bundle/youcompleteme"] | ||
path = vim/bundle/youcompleteme | ||
url = https://github.com/Valloric/YouCompleteMe.git | ||
[submodule "vim/bundle/javascript"] | ||
path = vim/bundle/javascript | ||
url = https://github.com/pangloss/vim-javascript.git | ||
[submodule "vim/bundle/rust"] | ||
path = vim/bundle/rust | ||
url = https://github.com/rust-lang/rust.vim.git | ||
[submodule "vim/bundle/pico8"] | ||
path = vim/bundle/pico8 | ||
url = https://github.com/justinj/vim-pico8-syntax | ||
[submodule "vim/bundle/skim"] | ||
path = vim/bundle/skim | ||
url = https://github.com/lotabout/skim.vim | ||
[submodule "vim/bundle/toml"] | ||
path = vim/bundle/toml | ||
url = https://github.com/cespare/vim-toml.git | ||
[submodule "vim/bundle/terraform"] | ||
path = vim/bundle/terraform | ||
url = https://github.com/hashivim/vim-terraform.git | ||
[submodule "vim/bundle/rdf"] | ||
path = vim/bundle/rdf | ||
url = https://github.com/niklasl/vim-rdf.git | ||
[submodule "vim/bundle/pest"] | ||
path = vim/bundle/pest | ||
url = https://github.com/pest-parser/pest.vim | ||
[submodule "vim/bundle/mold"] | ||
path = vim/bundle/mold | ||
url = https://github.com/xtfc/mold.vim.git | ||
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
set number | ||
set scrolloff=4 | ||
set expandtab | ||
set tabstop=2 | ||
set shiftwidth=2 | ||
set shiftround | ||
set list | ||
set listchars=tab:\|\ ,trail:· | ||
|
||
set statusline=%F%(\ %m%)\ %(\ %r%)%(\ %h%)%=%{&ft} | ||
|
||
set fillchars=stl:\ ,stlnc:\ ,vert:\ ,diff:\ ,fold:\ " no trailing whitespace here | ||
|
||
set wildignore+=*.dll | ||
set wildignore+=*.o | ||
set wildignore+=*.pyc | ||
set wildignore+=*.bak | ||
set wildignore+=*.exe | ||
set wildignore+=*.jpg | ||
set wildignore+=*.jpeg | ||
set wildignore+=*.png | ||
|
||
set colorcolumn=88 | ||
|
||
" automatically resize splits when the window is resized | ||
autocmd VimResized * exe "normal! \<c-w>=" | ||
|
||
filetype plugin indent on | ||
|
||
source ~/.config/nvim/map.vim | ||
source ~/.config/nvim/color.vim | ||
source ~/.config/nvim/fold.vim | ||
|
||
call plug#begin("~/.config/nvim/plugged") | ||
|
||
Plug 'JulesWang/css.vim' | ||
Plug 'cespare/vim-toml' | ||
Plug 'hashivim/vim-terraform' | ||
Plug 'justinj/vim-pico8-syntax' | ||
Plug 'kshenoy/vim-signature' | ||
Plug 'lotabout/skim.vim' | ||
Plug 'mileszs/ack.vim' | ||
Plug 'mitsuhiko/vim-jinja' | ||
Plug 'neoclide/coc.nvim', {'branch': 'release'} | ||
Plug 'niklasl/vim-rdf' | ||
Plug 'othree/html5.vim' | ||
Plug 'pangloss/vim-javascript' | ||
Plug 'pest-parser/pest.vim' | ||
Plug 'plasticboy/vim-markdown' | ||
Plug 'preservim/nerdtree' | ||
Plug 'rust-lang/rust.vim' | ||
Plug 'tpope/vim-surround' | ||
Plug 'xtfc/mold.vim' | ||
|
||
call plug#end() | ||
|
||
" coc.nvim config | ||
" https://github.com/neoclide/coc.nvim/wiki/Completion-with-sources#use-tab-or-custom-key-for-trigger-completion | ||
function! s:check_back_space() abort | ||
let col = col('.') - 1 | ||
return !col || getline('.')[col - 1] =~ '\s' | ||
endfunction | ||
|
||
inoremap <silent><expr> <Tab> | ||
\ pumvisible() ? "\<C-n>" : | ||
\ <SID>check_back_space() ? "\<Tab>" : | ||
\ coc#refresh() | ||
" NERDTree config | ||
nmap <Leader>n :NERDTreeToggle<CR> | ||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | ||
let g:NERDTreeDirArrowExpandable = '' | ||
let g:NERDTreeDirArrowCollapsible = '' |
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
Oops, something went wrong.