summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2023-01-27 02:01:29 +0100
committerache <ache@ache.one>2023-01-27 02:01:29 +0100
commita863e35c1521933c1b6b3d988ed6d06ffc456f04 (patch)
tree9603ec93ee1ba6ad5097aaa4c8b51847fb60a388
parentNvim and coc snippets config (diff)
Update install script
-rwxr-xr-xpack/ache/start/installPlugin.py145
-rwxr-xr-xpack/ache/start/installPlugin.sh117
2 files changed, 145 insertions, 117 deletions
diff --git a/pack/ache/start/installPlugin.py b/pack/ache/start/installPlugin.py
new file mode 100755
index 0000000..13caad4
--- /dev/null
+++ b/pack/ache/start/installPlugin.py
@@ -0,0 +1,145 @@
+#!/bin/env python
+
+import subprocess
+
+
+list_of_plugins = [
+
+# ale
+#
+# Check for error and format. 👍
+ "https://github.com/dense-analysis/ale.git",
+
+# coc.nvim
+#
+# A powerfull completion system based on LSP
+ ("https://github.com/neoclide/coc.nvim.git", "release"),
+
+# leap.nvim
+#
+# A powerfull visual movement system
+ "https://github.com/ggandor/leap.nvim",
+
+
+# A good status line
+ "https://github.com/vim-airline/vim-airline",
+
+# Vimspector
+#
+# Integrate gdb inside vim
+ "https://github.com/puremourning/vimspector",
+
+# nvim-tree.lua
+#
+# A smart and light file browser
+ "https://github.com/kyazdani42/nvim-tree.lua",
+
+# gen_tags.vim
+#
+# To generate tag for C based languages
+ "https://github.com/jsfaint/gen_tags.vim",
+
+# hexmode
+#
+# Switch to Hexmode with xxd, not very usefull
+ "https://github.com/fidian/hexmode.git",
+
+# Git integration
+#
+# "https://github.com/tpope/vim-fugitive",
+
+# Use "cs" to modified a surround character
+"https://github.com/tpope/vim-surround",
+# Color matching parentheses
+"https://github.com/junegunn/rainbow_parentheses.vim",
+
+# Quick comment/uncomment with "gcc"
+#
+"https://github.com/tpope/vim-commentary",
+
+# Fix the repeat map, not usefull
+# "https://github.com/tpope/vim-repeat"
+
+
+# Powerfull align tool, hard to remember
+ "https://github.com/godlygeek/tabular",
+
+# A dark colorscheme
+ "https://github.com/sjl/badwolf",
+# A lighter dark colorscheme
+ "https://github.com/nanotech/jellybeans.vim",
+# A colection of colorschemes
+ "https://github.com/lithammer/vim-eighties",
+
+# Fuzzy search and ripgrep integration
+ "https://github.com/junegunn/fzf.vim",
+ "https://github.com/junegunn/fzf",
+
+# A color integration that is beautifull and quick
+ "https://github.com/RRethy/vim-hexokinase",
+
+# Display registers content as auto completion 👍
+ "https://github.com/tversteeg/registers.nvim",
+
+# Rename XML open/close tag when the other one is modified
+ "https://github.com/AndrewRadev/tagalong.vim",
+
+# Grammalecte
+#
+# French corrector integration
+ "https://github.com/dpelle/vim-Grammalecte",
+
+# Neovim in Firefox
+# "https://github.com/glacambre/firenvim"
+
+# List of snippets
+ "https://github.com/honza/vim-snippets",
+
+# Language specific support
+ "https://github.com/jparise/vim-graphql",
+ "https://github.com/rust-lang/rust.vim",
+ "https://github.com/hail2u/vim-css3-syntax",
+ "https://github.com/pangloss/vim-javascript",
+ "https://github.com/khaveesh/vim-fish-syntax",
+ "https://github.com/fatih/vim-go",
+ "https://github.com/moll/vim-node",
+ "https://github.com/evanleck/vim-svelte"
+]
+
+list_coc_plugins = [
+# C based support
+ "coc-clangd",
+# JS support
+ "coc-svelte",
+ "coc-tsserver",
+ "coc-deno",
+# Python support
+ "coc-pyright",
+# Web support
+ "coc-html",
+ "coc-css",
+# Various snippets
+ "coc-snippets"
+]
+
+for plugin in list_of_plugins:
+ if type(plugin) is tuple:
+ subprocess.run(["git", "clone", "--branch", plugin[1], plugin[0], "--depth=1"])
+ else:
+ subprocess.run(["git", "clone", plugin, "--depth=1"])
+
+# Post install script
+
+with open('rainbow_parentheses.vim/plugin/rainbow_parentheses.vim', 'a') as f:
+ f.write('\n:RainbowParentheses\n')
+print('Post install Rainbow Parentheses done ✔️')
+
+subprocess.run(["make", "hexokinase"], cwd="vim-hexokinase")
+print('Post install Hexakinase done ✔️')
+
+installCmd = f"+:CocInstall {' '.join(list_coc_plugins)}"
+subprocess.run(["nvim", installCmd])
+print('Coc plugins install done ✔️')
+
+print("Please check health 🏥")
+subprocess.run(["nvim", "+:checkhealth"])
diff --git a/pack/ache/start/installPlugin.sh b/pack/ache/start/installPlugin.sh
deleted file mode 100755
index 56b0391..0000000
--- a/pack/ache/start/installPlugin.sh
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/bin/bash
-
-# jellybeans.vim/,
-# A good color scheme
-git clone "https://github.com/nanotech/jellybeans.vim"
-
-# 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/,
-#
-# Seriously, I can't use that
-git clone "https://github.com/godlygeek/tabular"
-
-# python-mode
-#
-git clone "https://github.com/python-mode/python-mode"
-
-# Deoplete // Completion for Language
-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"
-
-
-# Vim node ? Usefull to navigate between node package
-# Through require and import
-# 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"
-
- # Syntax checker
-git clone "https://github.com/vim-syntastic/syntastic"
-
- # 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 --branch release "https://github.com/neoclide/coc.nvim.git" --depth=1
-
-# 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-closetag
-#
-# Automatically lose HTML tag
-git clone "https://github.com/alvan/vim-closetag"
-
-
-
-# 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
-
-