Compare commits
1 Commits
ansible-pl
...
1e81fe5f14
| Author | SHA1 | Date | |
|---|---|---|---|
| 1e81fe5f14 |
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "pack/minpac/opt/minpac"]
|
||||||
|
path = pack/minpac/opt/minpac
|
||||||
|
url = https://github.com/k-takata/minpac.git
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
function! wsl#isDetected() abort
|
|
||||||
return $WSLENV !=# ''
|
|
||||||
endfunction
|
|
||||||
1
pack/minpac/opt/minpac
Submodule
1
pack/minpac/opt/minpac
Submodule
Submodule pack/minpac/opt/minpac added at 2f68c112dd
@@ -12,6 +12,9 @@ augroup benieAugroup
|
|||||||
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
|
||||||
\ | exe "normal! g'\"" | endif
|
\ | exe "normal! g'\"" | endif
|
||||||
|
|
||||||
|
" Highlight conflict markers in any filetype
|
||||||
|
au FileType * call matchadd('Todo', '^\(<<<<<<<\s.*\||||||||\|=======\|>>>>>>>\s.*\)$')
|
||||||
|
|
||||||
" Update `Last change: <date>` on write & go back previous cursor position
|
" Update `Last change: <date>` on write & go back previous cursor position
|
||||||
au FileType help au BufWritePre <buffer>
|
au FileType help au BufWritePre <buffer>
|
||||||
\ 1s/Last change: \zs.*$/\=strftime('%Y %b %d')/e|norm!``
|
\ 1s/Last change: \zs.*$/\=strftime('%Y %b %d')/e|norm!``
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
" minpac
|
||||||
|
function! s:minpac_init() abort
|
||||||
|
packadd minpac | call minpac#init() | source $MYVIMRC
|
||||||
|
endfunction
|
||||||
|
command! PackUpdate call s:minpac_init() | call minpac#update('', {'do': 'call minpac#status()'})
|
||||||
|
command! PackStatus call s:minpac_init() | call minpac#status()
|
||||||
|
command! PackClean call s:minpac_init() | call minpac#clean()
|
||||||
|
|
||||||
" Sort Python Imports
|
" Sort Python Imports
|
||||||
command! ISort call do#isort()
|
command! ISort call do#isort()
|
||||||
|
|
||||||
|
|||||||
54
tasks.yaml
54
tasks.yaml
@@ -1,17 +1,45 @@
|
|||||||
---
|
---
|
||||||
- include_vars: ~/.config/nvim/vars.yaml
|
- name: (neo)vim clone minpac
|
||||||
|
|
||||||
- name: clone plugin repos
|
|
||||||
when: ansible_os_family != "Windows"
|
|
||||||
git:
|
git:
|
||||||
repo: 'https://github.com/{{item.repo}}.git'
|
repo: https://github.com/k-takata/minpac.git
|
||||||
dest: '~/.config/nvim/pack/minpac/{{lookup("vars", "item.mode", default="start")}}/{{item.repo | regex_replace("^.*\/(.*)$", "\1")}}'
|
dest: pack/minpac/opt/minpac
|
||||||
version: '{{lookup("vars", "item.branch", default="HEAD")}}'
|
|
||||||
with_items: '{{plugins}}'
|
|
||||||
|
|
||||||
- name: clone plugin repos
|
- name: (neo)vim install pip packages
|
||||||
|
pip:
|
||||||
|
name:
|
||||||
|
- cmake-language-server
|
||||||
|
- cmakelint
|
||||||
|
- compdb
|
||||||
|
- vim-vint
|
||||||
|
- yamllint
|
||||||
|
state: latest
|
||||||
|
extra_args: --user
|
||||||
|
|
||||||
|
- name: (neo)vim install node.js Linux
|
||||||
|
when: ansible_system == "Linux"
|
||||||
|
include_tasks: nodejs-linux.yaml
|
||||||
|
- name: (neo)vim install node.js macOS
|
||||||
|
when: ansible_os_family == "Darwin"
|
||||||
|
homebrew: name=node state=latest
|
||||||
|
- name: (neo)vim install node.js Windows
|
||||||
when: ansible_os_family == "Windows"
|
when: ansible_os_family == "Windows"
|
||||||
win_git:
|
win_chocolatey: name=nodejs state=latest
|
||||||
repo: 'https://github.com/{{item.repo}}.git'
|
|
||||||
dest: '{{ansible_env.LOCALAPPDATA}}/nvim/pack/minpac/{{lookup("vars", "item.mode", default="start")}}/{{item.repo | regex_replace("^.*\/(.*)$", "\1")}}'
|
- name: (neo)vim install apt packages
|
||||||
version: '{{lookup("vars", "item.branch", default="HEAD")}}'
|
when: ansible_distribution == 'Ubuntu' and
|
||||||
|
ansible_distribution_release == '20.04'
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- clangd-12
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: (neo)vim install clangd alternative
|
||||||
|
when: ansible_distribution == 'Ubuntu' and
|
||||||
|
ansible_distribution_release == '20.04'
|
||||||
|
become: true
|
||||||
|
alternatives:
|
||||||
|
name: clangd
|
||||||
|
path: /usr/bin/clangd-12
|
||||||
|
link: /usr/local/bin/clangd
|
||||||
|
priority: 120
|
||||||
|
|||||||
66
vars.yaml
66
vars.yaml
@@ -1,66 +0,0 @@
|
|||||||
---
|
|
||||||
plugins:
|
|
||||||
- repo: mkitt/tabline.vim
|
|
||||||
- repo: neoclide/coc.nvim
|
|
||||||
branch: release
|
|
||||||
- repo: SirVer/ultisnips
|
|
||||||
- repo: honza/vim-snippets
|
|
||||||
- repo: vim-scripts/vimomni
|
|
||||||
mode: opt
|
|
||||||
- repo: w0rp/ale
|
|
||||||
- repo: mhinz/vim-signify
|
|
||||||
|
|
||||||
# Text Objects
|
|
||||||
- repo: kana/vim-textobj-user
|
|
||||||
# TODO: Doesn't work with nvim
|
|
||||||
- repo: kana/vim-textobj-entire
|
|
||||||
- repo: sgur/vim-textobj-parameter
|
|
||||||
- repo: jceb/vim-textobj-uri
|
|
||||||
- repo: glts/vim-textobj-comment
|
|
||||||
- repo: reedes/vim-textobj-sentence
|
|
||||||
|
|
||||||
# Tim Pope
|
|
||||||
- repo: tpope/vim-commentary
|
|
||||||
- repo: tpope/vim-surround
|
|
||||||
- repo: tpope/vim-repeat
|
|
||||||
- repo: tpope/vim-fugitive
|
|
||||||
- repo: tpope/vim-eunuch
|
|
||||||
- repo: tpope/vim-vinegar
|
|
||||||
- repo: tpope/vim-abolish
|
|
||||||
- repo: tpope/vim-unimpaired
|
|
||||||
- repo: tpope/vim-speeddating
|
|
||||||
- repo: godbyk/vim-endwise
|
|
||||||
branch: patch-1
|
|
||||||
- repo: tpope/vim-jdaddy
|
|
||||||
- repo: tpope/vim-projectionist
|
|
||||||
|
|
||||||
# Still necessary?
|
|
||||||
- repo: junegunn/fzf
|
|
||||||
- repo: junegunn/fzf.vim
|
|
||||||
|
|
||||||
# Forgot about this...
|
|
||||||
- repo: kbenzie/note.vim
|
|
||||||
|
|
||||||
# TODO: Move to tmux role?
|
|
||||||
# Pack 'christoomey/vim-tmux-navigator'
|
|
||||||
# Pack 'tmux-plugins/vim-tmux-focus-events'
|
|
||||||
|
|
||||||
- repo: wincent/replay
|
|
||||||
- repo: andymass/vim-matchup
|
|
||||||
- repo: dhruvasagar/vim-table-mode
|
|
||||||
- repo: vim-scripts/DoxygenToolkit.vim
|
|
||||||
mode: opt
|
|
||||||
- repo: guns/xterm-color-table.vim
|
|
||||||
|
|
||||||
# Syntax
|
|
||||||
- repo: kalekundert/vim-coiled-snake
|
|
||||||
- repo: kbenzie/vim-spirv
|
|
||||||
- repo: rperier/vim-cmake-syntax
|
|
||||||
- repo: tikhomirov/vim-glsl
|
|
||||||
- repo: beyondmarc/hlsl.vim
|
|
||||||
- repo: frasercrmck/opencl.vim
|
|
||||||
- repo: asciidoc/vim-asciidoc
|
|
||||||
- repo: mustache/vim-mustache-handlebars
|
|
||||||
- repo: joshglendenning/vim-caddyfile
|
|
||||||
- repo: kbenzie/vim-khr
|
|
||||||
- repo: jrozner/vim-antlr
|
|
||||||
16
vimrc
16
vimrc
@@ -11,6 +11,14 @@ if has('syntax') && !exists('g:syntax_on')
|
|||||||
syntax enable
|
syntax enable
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if exists('*minpac#init')
|
||||||
|
" When minpac is loaded define the Pack command to add packages.
|
||||||
|
command! -nargs=+ Pack call minpac#add(<args>)
|
||||||
|
else
|
||||||
|
" Otherwise define the Pack command to do nothing.
|
||||||
|
command! -nargs=+ Pack
|
||||||
|
endif
|
||||||
|
|
||||||
" Append work config to runtimepath and packpath.
|
" Append work config to runtimepath and packpath.
|
||||||
set runtimepath+=~/.config/work
|
set runtimepath+=~/.config/work
|
||||||
set packpath+=~/.config/work
|
set packpath+=~/.config/work
|
||||||
@@ -18,7 +26,7 @@ set packpath+=~/.config/work
|
|||||||
" tabline.vim - sanely numbered tabs
|
" tabline.vim - sanely numbered tabs
|
||||||
Pack 'mkitt/tabline.vim'
|
Pack 'mkitt/tabline.vim'
|
||||||
|
|
||||||
" coc.nvim - Conqueror of Completion
|
" coc.nvim Conqueror of Completion
|
||||||
Pack 'neoclide/coc.nvim', {'branch': 'release'}
|
Pack 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
let g:coc_global_extensions = [
|
let g:coc_global_extensions = [
|
||||||
\ 'coc-clangd',
|
\ 'coc-clangd',
|
||||||
@@ -56,11 +64,9 @@ let g:ale_linters = {'c': [], 'cpp': []}
|
|||||||
let g:ale_cmake_cmakelint_options =
|
let g:ale_cmake_cmakelint_options =
|
||||||
\ '-convention/filename,-package/consistency,-package/stdargs'
|
\ '-convention/filename,-package/consistency,-package/stdargs'
|
||||||
|
|
||||||
" vim-signify - Version control differences in the sign column
|
" Version control differences in the sign column
|
||||||
Pack 'mhinz/vim-signify'
|
Pack 'mhinz/vim-signify'
|
||||||
let g:signify_sign_change = '~'
|
let g:signify_sign_change = '~'
|
||||||
" Conflict marker utilities
|
|
||||||
Pack 'rhysd/conflict-marker.vim'
|
|
||||||
|
|
||||||
" vim-textobj-user - library for creating text objects
|
" vim-textobj-user - library for creating text objects
|
||||||
Pack 'kana/vim-textobj-user'
|
Pack 'kana/vim-textobj-user'
|
||||||
@@ -165,7 +171,7 @@ let g:rst_syntax_code_list = {
|
|||||||
\ 'python': ['python']
|
\ 'python': ['python']
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" vim-coiled-snake - Python folding
|
" Python folding
|
||||||
Pack 'kalekundert/vim-coiled-snake'
|
Pack 'kalekundert/vim-coiled-snake'
|
||||||
|
|
||||||
" Enable builtin syntax folding
|
" Enable builtin syntax folding
|
||||||
|
|||||||
Reference in New Issue
Block a user