Replace vim with nvim
Also extract config into separate repo
This commit is contained in:
parent
048469dfc0
commit
4461ff674d
7 changed files with 32 additions and 59 deletions
|
@ -33,7 +33,7 @@
|
||||||
- import_tasks: tasks/security.yml
|
- import_tasks: tasks/security.yml
|
||||||
|
|
||||||
- import_tasks: tasks/python.yml
|
- import_tasks: tasks/python.yml
|
||||||
- import_tasks: tasks/vim.yml
|
- import_tasks: tasks/neovim.yml
|
||||||
- import_tasks: tasks/intersect.yml
|
- import_tasks: tasks/intersect.yml
|
||||||
- import_tasks: tasks/vscode.yml
|
- import_tasks: tasks/vscode.yml
|
||||||
- import_tasks: tasks/gnome.yml
|
- import_tasks: tasks/gnome.yml
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{% include "vimrc" %}
|
|
||||||
|
|
||||||
" Override the color scheme. gvim has a light background by default
|
|
||||||
colo slate
|
|
|
@ -50,7 +50,7 @@ bindsym $mod+Tab exec --no-startup-id rofi -show window
|
||||||
bindsym $mod+c exec --no-startup-id rofi -show calc -modi calc -no-show-match -no-sort
|
bindsym $mod+c exec --no-startup-id rofi -show calc -modi calc -no-show-match -no-sort
|
||||||
bindsym $mod+Return exec alacritty
|
bindsym $mod+Return exec alacritty
|
||||||
bindsym $mod+n exec --no-startup-id nautilus
|
bindsym $mod+n exec --no-startup-id nautilus
|
||||||
bindsym $mod+Shift+g exec --no-startup-id gvim
|
bindsym $mod+Shift+g exec --no-startup-id nvim-qt
|
||||||
bindsym Control+Shift+Escape exec --no-startup-id gnome-system-monitor
|
bindsym Control+Shift+Escape exec --no-startup-id gnome-system-monitor
|
||||||
bindsym Control+Q exec --no-startup-id /bin/false
|
bindsym Control+Q exec --no-startup-id /bin/false
|
||||||
bindsym $mod+Shift+Delete exec --no-startup-id rofi-powermenu
|
bindsym $mod+Shift+Delete exec --no-startup-id rofi-powermenu
|
||||||
|
|
21
files/vimrc
21
files/vimrc
|
@ -1,21 +0,0 @@
|
||||||
cmap w!! w !sudo tee >/dev/null %
|
|
||||||
:set mouse=a
|
|
||||||
|
|
||||||
syntax on
|
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
if !has('gui_running')
|
|
||||||
set t_Co=256
|
|
||||||
endif
|
|
||||||
|
|
||||||
set background=dark
|
|
||||||
|
|
||||||
" Tab inserts 4 spaces
|
|
||||||
set expandtab
|
|
||||||
set ts=4 sw=4 sts=4
|
|
||||||
|
|
||||||
" Autocomplete in command mode (Tab to invoke)
|
|
||||||
set wildmenu
|
|
||||||
|
|
||||||
" Set the 'default but not default' colour scheme
|
|
||||||
colo default
|
|
|
@ -4,4 +4,4 @@ export TIMEFMT=$'\nreal\t%E\nuser\t%U\nsys\t%S'
|
||||||
export HISTCONTROL=ignoreboth
|
export HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
export BROWSER=$(which firefox)
|
export BROWSER=$(which firefox)
|
||||||
export EDITOR=$(which vim)
|
export EDITOR=$(which nvim)
|
||||||
|
|
29
tasks/neovim.yml
Normal file
29
tasks/neovim.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
- name: Install neovim
|
||||||
|
aur:
|
||||||
|
name: "{{ item }}"
|
||||||
|
become: true
|
||||||
|
become_user: aur_builder
|
||||||
|
loop:
|
||||||
|
- neovim
|
||||||
|
- neovim-qt
|
||||||
|
|
||||||
|
- name: Neovim config
|
||||||
|
git:
|
||||||
|
repo: https://git.theorangeone.net/sys/vim-config.git
|
||||||
|
dest: "{{ home }}/.config/nvim"
|
||||||
|
force: true
|
||||||
|
become: true
|
||||||
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
|
- name: Install config for root user
|
||||||
|
file:
|
||||||
|
src: "{{ home }}/.config/nvim"
|
||||||
|
dest: /root/.config/nvim
|
||||||
|
state: link
|
||||||
|
|
||||||
|
# Aliases are too boring
|
||||||
|
- name: Install vim alias
|
||||||
|
file:
|
||||||
|
src: /usr/bin/nvim
|
||||||
|
dest: /usr/bin/vim
|
||||||
|
state: link
|
|
@ -1,31 +0,0 @@
|
||||||
- name: Install vim
|
|
||||||
aur:
|
|
||||||
name: "{{ item }}"
|
|
||||||
become: true
|
|
||||||
become_user: aur_builder
|
|
||||||
loop:
|
|
||||||
- gvim
|
|
||||||
|
|
||||||
- name: Install vimrc
|
|
||||||
copy:
|
|
||||||
src: ./files/vimrc
|
|
||||||
dest: "{{ home }}/.vimrc"
|
|
||||||
mode: 0644
|
|
||||||
owner: "{{ user }}"
|
|
||||||
group: users
|
|
||||||
|
|
||||||
- name: Install gvimrc
|
|
||||||
template:
|
|
||||||
src: ./files/gvimrc
|
|
||||||
dest: "{{ home }}/.gvimrc"
|
|
||||||
mode: 0644
|
|
||||||
owner: "{{ user }}"
|
|
||||||
group: users
|
|
||||||
|
|
||||||
- name: Install vimrc for root user
|
|
||||||
copy:
|
|
||||||
src: ./files/vimrc
|
|
||||||
dest: /root/.vimrc
|
|
||||||
mode: 0644
|
|
||||||
owner: root
|
|
||||||
group: users
|
|
Loading…
Reference in a new issue