Compare commits

...
8 Commits
3 changed files with 45 additions and 6 deletions
+27 -5
View File
@@ -46,7 +46,6 @@ set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
call plug#begin('~/.vim/autoload/plug')
Plug 'davidhalter/jedi-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdtree'
@@ -58,9 +57,11 @@ Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'PhilRunninger/nerdtree-visual-selection'
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
Plug 'dense-analysis/ale'
Plug 'jiangmiao/auto-pairs'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
@@ -80,12 +81,31 @@ let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {}
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['nerdtree'] = '#'
let g:ale_virtualtext_cursor = 'current'
let g:ale_linters = {
\ 'python': ['flake8', 'pylint'],
\ 'go': ['vet', 'errcheck'],
\}
\ 'python': ['ruff'],
\ 'javascript': ['prettier', 'eslint'],
\ 'go': ['gopls', 'golangci-lint', 'staticcheck', 'go vet', 'go build']
\ }
let g:ale_python_flake8_options = '--ignore=E501'
let g:ale_echo_msg_format = '[%linter%] [%severity%] %code% %s'
let g:gruvbox_contrast_dark = 'soft'
let g:coc_global_extensions = [
\ 'coc-tsserver',
\ 'coc-html',
\ 'coc-css',
\ 'coc-emmet',
\ 'coc-pyright',
\ 'coc-go'
\ ]
let g:NERDTreeFileLines = 1
" Start NERDTree and put the cursor back in the other window.
autocmd VimEnter * NERDTree | wincmd p
" Open the existing NERDTree on each new tab.
autocmd BufWinEnter * if &buftype != 'quickfix' && getcmdwintype() == '' | silent NERDTreeMirror | endif
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | call feedkeys(":quit\<CR>:\<BS>") | endif
colorscheme gruvbox
" " }}}
@@ -111,6 +131,8 @@ augroup END
" More Vimscripts code goes here.
" }}}
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
sudo apt update && sudo apt upgrade -y
sudo apt install nodejs npm vim-nox tmux network-manager curl wget rsync git pipx python3-pip -y
pipx install ruff
pipx ensurepath
+11 -1
View File
@@ -1,7 +1,17 @@
#!/bin/bash
sudo apt install curl wget git -y
echo 'Setting up VIM...'
rsync -ax --exclude .git --exclude setup_dotenv_files.sh --exclude vim_fonts ./ ~/
curl --no-progress-meter -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo 'For VIM: Remember to run ":PlugInstall" on first run to set up the themes and plugins!'
echo 'Done! Remember to run ":PlugInstall" on first run to set up the themes and plugins!'
echo 'Setting up tmux...'
git clone https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm
echo 'Done! Remember to run "tmux source ~/.tmux.conf" to reload tmux`s config then "<prefix> + I" to download plugins!'