From d0b0685eeabcd758e89ac3950e8fcd0b1ead51ad Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 21 Dec 2021 01:58:07 +0100 Subject: Add a lot of plugins --- coc-settings.json | 10 ++++ init.vim | 2 + pack/ache/start/installPlugin.sh | 105 ++++++++++++++++++++++++++++++++------- plugin/perso.vim | 9 ++-- 4 files changed, 106 insertions(+), 20 deletions(-) create mode 100644 coc-settings.json create mode 100644 init.vim diff --git a/coc-settings.json b/coc-settings.json new file mode 100644 index 0000000..7bba792 --- /dev/null +++ b/coc-settings.json @@ -0,0 +1,10 @@ +{ + "languageserver": { + "go": { + "command": "gopls", + "rootPatterns": ["go.mod"], + "trace.server": "verbose", + "filetypes": ["go"] + } + } +} diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..0a13da0 --- /dev/null +++ b/init.vim @@ -0,0 +1,2 @@ +let g:opamshare = substitute(system('opam var share'),'\n$','','''') +execute "set rtp+=" . g:opamshare . "/merlin/vim" diff --git a/pack/ache/start/installPlugin.sh b/pack/ache/start/installPlugin.sh index 2b23cda..019a73d 100755 --- a/pack/ache/start/installPlugin.sh +++ b/pack/ache/start/installPlugin.sh @@ -1,40 +1,111 @@ #!/bin/bash # jellybeans.vim/, -git clone https://github.com/nanotech/jellybeans.vim +# A good color scheme +git clone "https://github.com/nanotech/jellybeans.vim" # badwolf -git clone https://github.com/sjl/badwolf +# The default color scheme +git clone "https://github.com/sjl/badwolf" + +# vim-eighties +# +# A lot of color schemes +git clone "https://github.com/lithammer/vim-eighties" + # tabular/, -git clone https://github.com/godlygeek/tabular +# +# Seriously, I can't use that +git clone "https://github.com/godlygeek/tabular" # python-mode -git clone https://github.com/python-mode/python-mode +# +git clone "https://github.com/python-mode/python-mode" # Deoplete // Completion for Language -git clone https://github.com/Shougo/deoplete.nvim +git clone "https://github.com/Shougo/deoplete.nvim" # Neosnippet, completion for snippets -git clone https://github.com/Shougo/neosnippet.vim -git clone https://github.com/Shougo/neosnippet-snippets - - -# Much simpler Rainbow Parenthses -git clone https://github.com/junegunn/rainbow_parentheses.vim +git clone "https://github.com/Shougo/neosnippet.vim" +git clone "https://github.com/Shougo/neosnippet-snippets" -# Active it -echo ":RainbowParentheses" >> ./rainbow_parentheses.vim/plugin/rainbow_parentheses.vim # Vim node ? Usefull to navigate between node package # Through require and import -git clone https://github.com/moll/vim-node +# TODO: How to do that again ?! +git clone "https://github.com/moll/vim-node" # Vim Java script -git clone https://github.com/pangloss/vim-javascript +git clone "https://github.com/pangloss/vim-javascript" # Syntax checker -git clone https://github.com/vim-syntastic/syntastic +git clone "https://github.com/vim-syntastic/syntastic" # Colorizer -git clone https://github.com/lilydjwg/colorizer +git clone "https://github.com/lilydjwg/colorizer" + +# Lightspeed +# +# Use 's' and 'S' to jump anywhere @ lightspeed ⚡ +git clone "https://github.com/ggandor/lightspeed.nvim" + + +# coc.nvim +# +# A very good code integrator for Vim +git clone "https://github.com/neoclide/coc.nvim.git" + +# ale +# +# Check for error and format. 👍 +git clone "https://github.com/dense-analysis/ale.git" + +# Hexmod +# +# `vim -b` and `:Hexmod` will use xxd to print a file in hexadecimal +git clone "https://github.com/fidian/hexmode.git" + + +# vim-svelte +# +# Colorise one file CSS, JS and HTML +git clone "https://github.com/evanleck/vim-svelte" + + +# vim-surround/ +# +# Quick change a delimiter from inside using `cs"'` +git clone "https://github.com/tpope/vim-surround" + + +# vim-javascript/ +# +# Here the ony benfice is indentation +git clone "https://github.com/pangloss/vim-javascript" + +# vim-commentary/ +# +# Quick comment using `gc` and `gcc` +git clone "https://github.com/tpope/vim-commentary" + + +# tagalon +# +# When you rename an HTML tag, it will rename the corresponding end/opening tag. +git clone "https://github.com/AndrewRadev/tagalong.vim" + + +# vim-css3-syntax/ +git clone "https://github.com/hail2u/vim-css3-syntax" + +# vim-Grammalecte/ +git clone "https://github.com/dpelle/vim-Grammalecte" + +# Much simpler Rainbow Parenthses +git clone "https://github.com/junegunn/rainbow_parentheses.vim" + +# Active it +echo ":RainbowParentheses" >> ./rainbow_parentheses.vim/plugin/rainbow_parentheses.vim + + diff --git a/plugin/perso.vim b/plugin/perso.vim index e7d1e2b..915451e 100755 --- a/plugin/perso.vim +++ b/plugin/perso.vim @@ -2,6 +2,10 @@ set showcmd set backspace=indent,eol,start +" Why the hell does Vim add \n add the end of a file ? +set nofixendofline + + set clipboard=unnamedplus set ruler set t_Co=256 @@ -18,10 +22,9 @@ inoremap filetype plugin indent on " Color : +colo badwolf autocmd ColorScheme * highlight ExtraWhitespace ctermbg=darkred guibg=darkred -colo jellybeans -colo badwolf set cursorline hi CursorLine term=bold cterm=bold ctermbg=black @@ -133,7 +136,7 @@ noremap zv :!markdown % \| w3m -I utf-8 -T text/html set colorcolumn=80 set cursorcolumn -highlight CursorColumn ctermbg=Red +highlight CursorColumn ctermbg=54 set hls set incsearch -- cgit v1.2.3