Compare commits

...
18 Commits
Author SHA1 Message Date
V cef017570b fixed nerdtree config issue 2025-12-06 14:04:21 +00:00
V a254cf6fdd added auto open nerdtree on vim startup 2025-12-06 13:38:10 +00:00
v 71be44cf8c Removed openconnect client, added nodejs, npm (for COC) and added extra commands for setup 2025-12-03 21:08:21 +00:00
V 89661a96ba Switched to COC for linting 2025-07-21 18:42:16 +01:00
V b69fd7ed38 Expanding setup script 2025-07-05 15:12:56 +01:00
V 8f98f6bc98 Expanding setup script 2025-07-05 13:48:54 +01:00
V 65cd422da1 Updated scripts for installing the correct verion of Vim (with Python3 support) 2025-07-05 13:17:52 +01:00
V 53a7d6460b Added details for tmux install 2025-06-09 19:14:04 +00:00
Juan Shotyou 0fbd88a5e5 Edited script + added required fonts into repo 2024-09-02 16:51:50 +01:00
Juan Shotyou bfbdd11df8 Merge branch 'main' of https://github.com/juanshotyou/juanshot-dotenv 2024-09-01 20:38:14 +01:00
Juan Shotyou 96b975c1f9 Enabled vim relative line numbers 2024-09-01 20:37:38 +01:00
Vlad R 1003e7d2d9 Added the Plug setup step to the setup script + instructions 2024-08-28 12:14:02 +00:00
Juan Shotyou 29a1c649a1 changed ALE config to limit used linters for Python and Go 2024-08-26 17:13:05 +01:00
Juan Shotyou 1d7cd7f367 Added ALE for syntax checking 2024-08-26 16:28:13 +01:00
Juan Shotyou 3d1081f7c6 enabled mouse mode lol 2024-08-25 22:42:02 +01:00
Juan Shotyou e90d79e7ec Added tmux tpm and gruvbox 2024-08-25 21:01:22 +01:00
Juan Shotyou 8edfb474ce Moved to dark mode theme 2024-08-25 16:31:30 +01:00
Juan Shotyou c4be65c0b9 Fixed tmux issue + added more plugins 2024-08-25 14:36:11 +01:00
5 changed files with 82 additions and 7 deletions
+19
View File
@@ -35,3 +35,22 @@ set-window-option -g pane-base-index 1
# Move to next/previous window with Alt+k/Alt+j # Move to next/previous window with Alt+k/Alt+j
bind -n M-j previous-window bind -n M-j previous-window
bind -n M-k next-window bind -n M-k next-window
# Fix tmux color issue for vim
set -g default-terminal "xterm-256color"
# Enable mouse mode
set -g mouse on
# Tmux Plugin Manager
# Note: Clone https://github.com/tmux-plugins/tpm to ~/.tmux/plugins/tpm first
set -g @plugin 'tmux-plugins/tpm'
# Theme
set -g @plugin 'egel/tmux-gruvbox'
set -g @tmux-gruvbox 'dark'
#set -g @plugin 'jimeh/tmux-themepack'
#set -g @themepack 'powerline/double/magenta'
# Load Tmux Plugin Manager (keep this at the end)
run '~/.tmux/plugins/tpm/tpm'
+41 -6
View File
@@ -28,10 +28,12 @@ set history=10000 " Set the commands to save in history default number is 20.
set wildmenu " Enable auto completion menu after pressing TAB. set wildmenu " Enable auto completion menu after pressing TAB.
set wildmode=list:longest " Make wildmenu behave like similar to Bash completion. set wildmode=list:longest " Make wildmenu behave like similar to Bash completion.
set title " Show file title set title " Show file title
set cc=100 " Enable visual limit at 100 chars for good code formatting practice
set guifont=hack_nerd_font:h11 set guifont=hack_nerd_font:h11
" set cc=100 " Enable visual limit at 100 chars for good code formatting practice set bg=dark
set relativenumber
let g:kite_supported_languages = ['python', 'javascript'] let g:kite_supported_languages = ['python', 'javascript', 'go']
" There are certain files that we would never want to edit with Vim. " There are certain files that we would never want to edit with Vim.
@@ -44,10 +46,9 @@ set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
call plug#begin('~/.vim/autoload/plug') call plug#begin('~/.vim/autoload/plug')
Plug 'davidhalter/jedi-vim'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'preservim/nerdtree'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
Plug 'preservim/nerdtree'
Plug 'morhetz/gruvbox' Plug 'morhetz/gruvbox'
Plug 'sheerun/vim-polyglot' Plug 'sheerun/vim-polyglot'
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
@@ -55,12 +56,17 @@ Plug 'scrooloose/nerdcommenter'
Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'PhilRunninger/nerdtree-visual-selection' Plug 'PhilRunninger/nerdtree-visual-selection'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
Plug 'dense-analysis/ale'
Plug 'jiangmiao/auto-pairs'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end() call plug#end()
" Plugin configs " Plugin configs
colorscheme gruvbox
let g:bargreybars_auto=0 let g:bargreybars_auto=0
let g:airline_solorized_bg='dark' let g:airline_solorized_bg='dark'
let g:airline_powerline_fonts=1 let g:airline_powerline_fonts=1
@@ -69,12 +75,39 @@ let g:airline#extension#tabline#left_sep=' '
let g:airline#extension#tabline#left_alt_sep='|' let g:airline#extension#tabline#left_alt_sep='|'
let g:airline#extension#tabline#formatter='unique_tail' let g:airline#extension#tabline#formatter='unique_tail'
let NERDTreeQuitOnOpen=1 let NERDTreeQuitOnOpen=1
let g:WebDevIconsUnicodeDecorateFolderNodes = 1 let g:WebDevIconsUnicodeDecorateFolderNodes = 1
let g:WebDevIconsUnicodeDecorateFolderNodeDefaultSymbol = '#' let g:WebDevIconsUnicodeDecorateFolderNodeDefaultSymbol = '#'
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {} let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {}
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['nerdtree'] = '#' let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['nerdtree'] = '#'
let g:ale_virtualtext_cursor = 'current'
let g:ale_linters = {
\ '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
" " }}} " " }}}
@@ -98,6 +131,8 @@ augroup END
" More Vimscripts code goes here. " 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
+15 -1
View File
@@ -1,3 +1,17 @@
#!/bin/bash #!/bin/bash
rsync -ax --exclude ./.git --exclude setup_dotenv_files.sh ./ ~/ 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 '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!'
Binary file not shown.