Compare commits
24 Commits
764ecef7d9
...
ansible-pl
| Author | SHA1 | Date | |
|---|---|---|---|
| a9316971f1 | |||
| ee5110efd8 | |||
| 330329ef2b | |||
| 32610db521 | |||
| 4c142d2fa5 | |||
| cde38c5469 | |||
| dfc26e9c40 | |||
| 5476d9ec86 | |||
| 78ae575efe | |||
| 3577aa13bc | |||
| 2ce3d322ca | |||
| 27c42a6a92 | |||
| 61ce53bfd3 | |||
| d0af1c7116 | |||
| ec2b973fc0 | |||
| 98b48377cd | |||
| eb9579e1b6 | |||
| a689039ae2 | |||
| 3da17559e9 | |||
| 68c699882d | |||
| 51c56a8633 | |||
| 14d34e0b6b | |||
| fd31549a32 | |||
| d66ff687d4 |
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -1,3 +0,0 @@
|
|||||||
[submodule "pack/minpac/opt/minpac"]
|
|
||||||
path = pack/minpac/opt/minpac
|
|
||||||
url = https://github.com/k-takata/minpac.git
|
|
||||||
@@ -45,7 +45,7 @@ if exists('g:c_doxygen') && g:c_doxygen
|
|||||||
|
|
||||||
" Match: @param name description. @retval name description.
|
" Match: @param name description. @retval name description.
|
||||||
" ^^^^ ^^^^
|
" ^^^^ ^^^^
|
||||||
syn region cDoxygenSpecial matchgroup=cDoxygenComment start='@\(param\(\[\(\|in\|out\|in,out\)\]\)\|retval\)\=\s\+' end='\(\s\|$\)' contained display
|
syn region cDoxygenSpecial matchgroup=cDoxygenComment start='@\(param\(\[\(\|in\|out\|in,out\)\]\)\?\|retval\)\=\s\+' end='\(\s\|$\)' contained display
|
||||||
|
|
||||||
" Match: @tparam name description.
|
" Match: @tparam name description.
|
||||||
" ^^^^
|
" ^^^^
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
hi link jsonKeyword Function
|
hi link jsonKeyword Function
|
||||||
hi link jsonNull Constant
|
hi link jsonNull Constant
|
||||||
hi link jsonQuote Delimiter
|
hi link jsonQuote Delimiter
|
||||||
|
setlocal conceallevel=0
|
||||||
|
|||||||
3
autoload/wsl.vim
Normal file
3
autoload/wsl.vim
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function! wsl#isDetected() abort
|
||||||
|
return $WSLENV !=# ''
|
||||||
|
endfunction
|
||||||
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
|
"clangd.inlayHints.enable": false,
|
||||||
"cmake.lsp.enable": true,
|
"cmake.lsp.enable": true,
|
||||||
|
"diagnostic.enableHighlightLineNumber": false,
|
||||||
|
"diagnostic.errorSign": "▸",
|
||||||
"diagnostic.hintSign": "▸",
|
"diagnostic.hintSign": "▸",
|
||||||
"diagnostic.infoSign": "▸",
|
"diagnostic.infoSign": "▸",
|
||||||
"diagnostic.warningSign": "▸",
|
"diagnostic.warningSign": "▸",
|
||||||
"diagnostic.errorSign": "▸",
|
"powershell.integratedConsole.showOnStartup": false,
|
||||||
"diagnostic.enableHighlightLineNumber": false
|
"suggest.noselect": true,
|
||||||
|
"yaml.schemas": {
|
||||||
|
"https://gitlab.com/gitlab-org/gitlab/-/raw/master/app/assets/javascripts/editor/schema/ci.json": [
|
||||||
|
".gitlab-ci.yml",
|
||||||
|
".gitlab/ci/*.yml"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,7 +126,9 @@ if has('gui_running') || &t_Co == 256
|
|||||||
call s:hi('SpellLocal', '5', '', '')
|
call s:hi('SpellLocal', '5', '', '')
|
||||||
call s:hi('SpellRare', '3', '', '')
|
call s:hi('SpellRare', '3', '', '')
|
||||||
call s:hi('StatusLine', '15', '233', '')
|
call s:hi('StatusLine', '15', '233', '')
|
||||||
|
call s:hi('StatusLineTerm', '15', '233', '')
|
||||||
call s:hi('StatusLineNC', '', '235', '')
|
call s:hi('StatusLineNC', '', '235', '')
|
||||||
|
call s:hi('StatusLineTermNC', '', '235', '')
|
||||||
call s:hi('TabLine', '246', '235', 'bold')
|
call s:hi('TabLine', '246', '235', 'bold')
|
||||||
call s:hi('TabLineFill', '', '235', '')
|
call s:hi('TabLineFill', '', '235', '')
|
||||||
call s:hi('TabLineSel', '248', '', 'bold')
|
call s:hi('TabLineSel', '248', '', 'bold')
|
||||||
@@ -213,6 +215,7 @@ if has('gui_running') || &t_Co == 256
|
|||||||
call s:hi('CocInfoFloat', '8', '235', '')
|
call s:hi('CocInfoFloat', '8', '235', '')
|
||||||
call s:hi('CocHintSign', '33', '233', '')
|
call s:hi('CocHintSign', '33', '233', '')
|
||||||
call s:hi('CocHintFloat', '33', '235', '')
|
call s:hi('CocHintFloat', '33', '235', '')
|
||||||
|
call s:hi('CocInlayHint', '8', '', '')
|
||||||
|
|
||||||
call s:hi('SyntasticErrorSign', '160', '233', 'bold')
|
call s:hi('SyntasticErrorSign', '160', '233', 'bold')
|
||||||
call s:hi('SyntasticWarningSign', '129', '233', 'bold')
|
call s:hi('SyntasticWarningSign', '129', '233', 'bold')
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#clang_format()
|
setlocal formatexpr=format#clang_format()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -2,5 +2,5 @@
|
|||||||
setlocal matchpairs+=<:>
|
setlocal matchpairs+=<:>
|
||||||
|
|
||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#clang_format()
|
setlocal formatexpr=format#clang_format()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#clang_format()
|
setlocal formatexpr=format#clang_format()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#clang_format()
|
setlocal formatexpr=format#clang_format()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#clang_format()
|
setlocal formatexpr=format#clang_format()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#clang_format()
|
setlocal formatexpr=format#clang_format()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#clang_format()
|
setlocal formatexpr=format#clang_format()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
if has('pythonx')
|
if has('pythonx')
|
||||||
set formatexpr=format#yapf()
|
setlocal formatexpr=format#yapf()
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
if exists(':GuiFont')
|
if exists(':GuiFont')
|
||||||
if platform#is_windows()
|
if platform#is_windows()
|
||||||
GuiFont! Consolas:h9
|
GuiFont! Source\ Code\ Pro:h10
|
||||||
else
|
else
|
||||||
GuiFont Source\ Code\ Pro:h9
|
GuiFont Source\ Code\ Pro:h9
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if exists(':GuiTabline')
|
||||||
|
" Don't use GUI tabline, matches terminal tabline.
|
||||||
|
GuiTabline 0
|
||||||
|
endif
|
||||||
|
|||||||
2
gvimrc
2
gvimrc
@@ -6,7 +6,7 @@
|
|||||||
set guioptions=aegi
|
set guioptions=aegi
|
||||||
|
|
||||||
if platform#is_windows()
|
if platform#is_windows()
|
||||||
set guifont=Consolas:h10:cDEFAULT
|
set guifont=Source\ Code\ Pro:h10
|
||||||
else
|
else
|
||||||
" Set default font
|
" Set default font
|
||||||
set guifont=Source\ Code\ Pro\ Medium\ 9
|
set guifont=Source\ Code\ Pro\ Medium\ 9
|
||||||
|
|||||||
Submodule pack/minpac/opt/minpac deleted from 6cf985065a
@@ -12,9 +12,6 @@ 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,11 +1,3 @@
|
|||||||
" 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()
|
||||||
|
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Change cursor dependant on current mode
|
" Change cursor dependant on current mode
|
||||||
if has('cursorshape') && has('unix') && !has('gui_running')
|
if !has('nvim') && has('cursorshape') && has('unix') && !has('gui_running')
|
||||||
if $TMUX ==# '' && $ITERM_PROFILE !=# ''
|
if $TMUX ==# '' && $ITERM_PROFILE !=# ''
|
||||||
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
|
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
|
||||||
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
|
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
|
||||||
|
|||||||
54
tasks.yaml
54
tasks.yaml
@@ -1,45 +1,17 @@
|
|||||||
---
|
---
|
||||||
- name: (neo)vim clone minpac
|
- include_vars: ~/.config/nvim/vars.yaml
|
||||||
|
|
||||||
|
- name: clone plugin repos
|
||||||
|
when: ansible_os_family != "Windows"
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/k-takata/minpac.git
|
repo: 'https://github.com/{{item.repo}}.git'
|
||||||
dest: pack/minpac/opt/minpac
|
dest: '~/.config/nvim/pack/minpac/{{lookup("vars", "item.mode", default="start")}}/{{item.repo | regex_replace("^.*\/(.*)$", "\1")}}'
|
||||||
|
version: '{{lookup("vars", "item.branch", default="HEAD")}}'
|
||||||
|
with_items: '{{plugins}}'
|
||||||
|
|
||||||
- name: (neo)vim install pip packages
|
- name: clone plugin repos
|
||||||
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"
|
||||||
choco: name=nodejs state=latest
|
win_git:
|
||||||
|
repo: 'https://github.com/{{item.repo}}.git'
|
||||||
- name: (neo)vim install apt packages
|
dest: '{{ansible_env.LOCALAPPDATA}}/nvim/pack/minpac/{{lookup("vars", "item.mode", default="start")}}/{{item.repo | regex_replace("^.*\/(.*)$", "\1")}}'
|
||||||
when: ansible_distribution == 'Ubuntu' and
|
version: '{{lookup("vars", "item.branch", default="HEAD")}}'
|
||||||
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
Normal file
66
vars.yaml
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
26
vimrc
26
vimrc
@@ -11,14 +11,6 @@ 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
|
||||||
@@ -26,12 +18,13 @@ 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',
|
||||||
\ 'coc-cmake',
|
\ 'coc-cmake',
|
||||||
\ 'coc-css',
|
\ 'coc-css',
|
||||||
|
\ 'coc-docker',
|
||||||
\ 'coc-html',
|
\ 'coc-html',
|
||||||
\ 'coc-jedi',
|
\ 'coc-jedi',
|
||||||
\ 'coc-json',
|
\ 'coc-json',
|
||||||
@@ -41,6 +34,11 @@ let g:coc_global_extensions = [
|
|||||||
\ 'coc-vimlsp',
|
\ 'coc-vimlsp',
|
||||||
\ 'coc-yaml',
|
\ 'coc-yaml',
|
||||||
\]
|
\]
|
||||||
|
if has("win32")
|
||||||
|
let g:coc_global_extensions += [
|
||||||
|
\ 'coc-powershell'
|
||||||
|
\]
|
||||||
|
endif
|
||||||
let g:coc_default_semantic_highlight_groups = 0
|
let g:coc_default_semantic_highlight_groups = 0
|
||||||
|
|
||||||
" ultisnips - snippet engine
|
" ultisnips - snippet engine
|
||||||
@@ -58,9 +56,11 @@ 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'
|
||||||
|
|
||||||
" Version control differences in the sign column
|
" vim-signify - 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'
|
||||||
@@ -96,6 +96,10 @@ Pack 'tpope/vim-fugitive'
|
|||||||
Pack 'tpope/vim-eunuch'
|
Pack 'tpope/vim-eunuch'
|
||||||
" vim-vinegar - improved directory browser
|
" vim-vinegar - improved directory browser
|
||||||
Pack 'tpope/vim-vinegar'
|
Pack 'tpope/vim-vinegar'
|
||||||
|
if wsl#isDetected()
|
||||||
|
" Make gx work in WSL
|
||||||
|
let g:netrw_browsex_viewer='cmd.exe /C start'
|
||||||
|
endif
|
||||||
" vim-abolish - CamelCase to under_score to mixedCase
|
" vim-abolish - CamelCase to under_score to mixedCase
|
||||||
" TODO: Copy the good bit remove this plugin
|
" TODO: Copy the good bit remove this plugin
|
||||||
Pack 'tpope/vim-abolish'
|
Pack 'tpope/vim-abolish'
|
||||||
@@ -161,7 +165,7 @@ let g:rst_syntax_code_list = {
|
|||||||
\ 'python': ['python']
|
\ 'python': ['python']
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" Python folding
|
" vim-coiled-snake - 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