diff --git a/roles/neovim/tasks/main.yml b/roles/neovim/tasks/main.yml index 795fd6b..8f9c348 100644 --- a/roles/neovim/tasks/main.yml +++ b/roles/neovim/tasks/main.yml @@ -76,7 +76,7 @@ when: colors_dir.stat.exists and colors_dir.stat.islnk - name: Copy configs - copy: src={{ item.src }} dest={{ item.dest }} + copy: src={{ item.src }} dest={{ item.dest }} mode=0644 with_items: - {src: 'init.vim', dest: '~/.config/nvim/init.vim'} - {src: 'flake8', dest: '~/.flake8'} diff --git a/roles/vim/files/init.vim b/roles/vim/files/init.vim deleted file mode 100644 index 2fd52cc..0000000 --- a/roles/vim/files/init.vim +++ /dev/null @@ -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 diff --git a/roles/vim/tasks/main.yml b/roles/vim/tasks/main.yml index 795fd6b..3b606de 100644 --- a/roles/vim/tasks/main.yml +++ b/roles/vim/tasks/main.yml @@ -4,8 +4,6 @@ pacman: name: - vim - - python-pynvim - - neovim - python-pylint - python-black - ansible-lint @@ -15,7 +13,6 @@ - shellcheck - cmake - clang - - npm when: ansible_facts['distribution'] == 'Archlinux' @@ -24,8 +21,6 @@ apt: name: - vim - - python3-pynvim - - neovim - build-essential - python3-dev - pylint3 @@ -35,7 +30,6 @@ - shellcheck - cmake - clang - - npm when: ansible_facts['distribution'] == 'Debian' @@ -46,23 +40,6 @@ when: ansible_facts['distribution'] == 'Archlinux' 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 stat: path: ~/.vim/colors @@ -76,9 +53,8 @@ when: colors_dir.stat.exists and colors_dir.stat.islnk - name: Copy configs - copy: src={{ item.src }} dest={{ item.dest }} + copy: src={{ item.src }} dest={{ item.dest }} mode=0644 with_items: - - {src: 'init.vim', dest: '~/.config/nvim/init.vim'} - {src: 'flake8', dest: '~/.flake8'} - {src: 'pylintrc', dest: '~/.pylintrc'} - {src: 'vimrc', dest: '~/.vimrc'}