install neovim
This commit is contained in:
parent
c12fe77a48
commit
6d34fe9903
3 changed files with 38 additions and 3 deletions
|
@ -9,7 +9,6 @@
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- nextcloud (could automatically add directory but difficult)
|
- nextcloud (could automatically add directory but difficult)
|
||||||
- latest neovim
|
|
||||||
- Telegram (maybe only possible to download)
|
- Telegram (maybe only possible to download)
|
||||||
- Oh my zsh?
|
- Oh my zsh?
|
||||||
- vscodium
|
- Cool neovim setup
|
||||||
|
|
|
@ -61,6 +61,16 @@
|
||||||
- libxml2-utils
|
- libxml2-utils
|
||||||
- libncurses-dev
|
- libncurses-dev
|
||||||
- openjdk-11-jdk
|
- openjdk-11-jdk
|
||||||
|
# Neovim stuff: https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
|
||||||
|
- ninja-build
|
||||||
|
- gettext
|
||||||
|
- libtool
|
||||||
|
- libtool-bin
|
||||||
|
- automake
|
||||||
|
- cmake
|
||||||
|
- g++
|
||||||
|
- pkg-config
|
||||||
|
- doxygen
|
||||||
- name: Set default shell to zsh
|
- name: Set default shell to zsh
|
||||||
become: true
|
become: true
|
||||||
user:
|
user:
|
||||||
|
@ -96,3 +106,24 @@
|
||||||
- name: Install VSCodium extensions
|
- name: Install VSCodium extensions
|
||||||
shell: "codium --install-extension {{ item }}"
|
shell: "codium --install-extension {{ item }}"
|
||||||
loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}"
|
loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}"
|
||||||
|
- name: Create git repository directory
|
||||||
|
file:
|
||||||
|
path: ~/repos
|
||||||
|
state: directory
|
||||||
|
- name: Pull neovim repository
|
||||||
|
git:
|
||||||
|
repo: https://github.com/neovim/neovim.git
|
||||||
|
dest: ~/repos/neovim
|
||||||
|
version: stable
|
||||||
|
- name: Build neovim
|
||||||
|
make:
|
||||||
|
chdir: ~/repos/neovim
|
||||||
|
params:
|
||||||
|
CMAKE_BUILD_TYPE: RelWithDebInfo
|
||||||
|
changed_when: false # I lie a bit, but neovim makefile doesn't cooperate
|
||||||
|
- name: Install neovim
|
||||||
|
become: true
|
||||||
|
make:
|
||||||
|
chdir: "/home/{{ ansible_user_id }}/repos/neovim"
|
||||||
|
target: install
|
||||||
|
changed_when: false # Idem
|
||||||
|
|
|
@ -36,7 +36,7 @@ zstyle ':completion:*' verbose true
|
||||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
|
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
|
||||||
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||||
|
|
||||||
# Custom stuff
|
# Git aliases
|
||||||
alias gp='git push'
|
alias gp='git push'
|
||||||
alias gco='git checkout'
|
alias gco='git checkout'
|
||||||
alias gd='git diff'
|
alias gd='git diff'
|
||||||
|
@ -51,3 +51,8 @@ alias gl='git log'
|
||||||
. $HOME/.asdf/asdf.sh
|
. $HOME/.asdf/asdf.sh
|
||||||
fpath=(${ASDF_DIR}/completions $fpath)
|
fpath=(${ASDF_DIR}/completions $fpath)
|
||||||
autoload -Uz compinit && compinit
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
|
# For neovim
|
||||||
|
PATH=$PATH:/usr/local
|
||||||
|
alias vi='nvim'
|
||||||
|
alias vim='nvim'
|
||||||
|
|
Reference in a new issue