Remove neovim-specific things from vim role
This commit is contained in:
parent
d809b31895
commit
568c5daf10
3 changed files with 2 additions and 32 deletions
|
@ -76,7 +76,7 @@
|
||||||
when: colors_dir.stat.exists and colors_dir.stat.islnk
|
when: colors_dir.stat.exists and colors_dir.stat.islnk
|
||||||
|
|
||||||
- name: Copy configs
|
- name: Copy configs
|
||||||
copy: src={{ item.src }} dest={{ item.dest }}
|
copy: src={{ item.src }} dest={{ item.dest }} mode=0644
|
||||||
with_items:
|
with_items:
|
||||||
- {src: 'init.vim', dest: '~/.config/nvim/init.vim'}
|
- {src: 'init.vim', dest: '~/.config/nvim/init.vim'}
|
||||||
- {src: 'flake8', dest: '~/.flake8'}
|
- {src: 'flake8', dest: '~/.flake8'}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
|
||||||
let &packpath = &runtimepath
|
|
||||||
source ~/.vimrc
|
|
||||||
let g:python3_host_prog = '/usr/bin/python3'
|
|
||||||
let g:vimtex_compiler_progname = 'nvr'
|
|
||||||
tnoremap <Esc> <C-\><C-n>
|
|
|
@ -4,8 +4,6 @@
|
||||||
pacman:
|
pacman:
|
||||||
name:
|
name:
|
||||||
- vim
|
- vim
|
||||||
- python-pynvim
|
|
||||||
- neovim
|
|
||||||
- python-pylint
|
- python-pylint
|
||||||
- python-black
|
- python-black
|
||||||
- ansible-lint
|
- ansible-lint
|
||||||
|
@ -15,7 +13,6 @@
|
||||||
- shellcheck
|
- shellcheck
|
||||||
- cmake
|
- cmake
|
||||||
- clang
|
- clang
|
||||||
- npm
|
|
||||||
when:
|
when:
|
||||||
ansible_facts['distribution'] == 'Archlinux'
|
ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
|
@ -24,8 +21,6 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- vim
|
- vim
|
||||||
- python3-pynvim
|
|
||||||
- neovim
|
|
||||||
- build-essential
|
- build-essential
|
||||||
- python3-dev
|
- python3-dev
|
||||||
- pylint3
|
- pylint3
|
||||||
|
@ -35,7 +30,6 @@
|
||||||
- shellcheck
|
- shellcheck
|
||||||
- cmake
|
- cmake
|
||||||
- clang
|
- clang
|
||||||
- npm
|
|
||||||
when:
|
when:
|
||||||
ansible_facts['distribution'] == 'Debian'
|
ansible_facts['distribution'] == 'Debian'
|
||||||
|
|
||||||
|
@ -46,23 +40,6 @@
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
changed_when: "'there is nothing to do' not in shellcheck_script.stdout"
|
changed_when: "'there is nothing to do' not in shellcheck_script.stdout"
|
||||||
|
|
||||||
- name: Install neovim with pip for Debian
|
|
||||||
pip:
|
|
||||||
name: neovim
|
|
||||||
extra_args: --user
|
|
||||||
when:
|
|
||||||
ansible_facts['distribution'] == 'Debian'
|
|
||||||
|
|
||||||
- name: Install neovim-remote
|
|
||||||
pip:
|
|
||||||
name: neovim-remote
|
|
||||||
extra_args: --user
|
|
||||||
|
|
||||||
- name: Make sure ~/.config/nvim/ directory exists
|
|
||||||
file:
|
|
||||||
path: ~/.config/nvim
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: Check if colors is a symlink
|
- name: Check if colors is a symlink
|
||||||
stat:
|
stat:
|
||||||
path: ~/.vim/colors
|
path: ~/.vim/colors
|
||||||
|
@ -76,9 +53,8 @@
|
||||||
when: colors_dir.stat.exists and colors_dir.stat.islnk
|
when: colors_dir.stat.exists and colors_dir.stat.islnk
|
||||||
|
|
||||||
- name: Copy configs
|
- name: Copy configs
|
||||||
copy: src={{ item.src }} dest={{ item.dest }}
|
copy: src={{ item.src }} dest={{ item.dest }} mode=0644
|
||||||
with_items:
|
with_items:
|
||||||
- {src: 'init.vim', dest: '~/.config/nvim/init.vim'}
|
|
||||||
- {src: 'flake8', dest: '~/.flake8'}
|
- {src: 'flake8', dest: '~/.flake8'}
|
||||||
- {src: 'pylintrc', dest: '~/.pylintrc'}
|
- {src: 'pylintrc', dest: '~/.pylintrc'}
|
||||||
- {src: 'vimrc', dest: '~/.vimrc'}
|
- {src: 'vimrc', dest: '~/.vimrc'}
|
||||||
|
|
Loading…
Add table
Reference in a new issue