Compare commits
55 Commits
49051cff43
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 00e30facd3 | |||
| e378b83549 | |||
| 1de326471c | |||
| aab402fa73 | |||
| 586141cb14 | |||
| f8407f959f | |||
| 97c7c974cf | |||
| 35acaa6cb2 | |||
| 3334451c2a | |||
| d29cfc6aab | |||
| 024268db74 | |||
| 0c515161b0 | |||
| 525f6c2a5f | |||
| 0d4dab892e | |||
| 24de16b587 | |||
| 226765f88a | |||
| 20c3c27bd7 | |||
| 877d90dd90 | |||
| 8f578862ef | |||
| 9cc65d5e1f | |||
| 86659d8db6 | |||
| e066388627 | |||
| 5457b54a3a | |||
| 5972ec6aa8 | |||
| 2694c76a67 | |||
| ee5110efd8 | |||
| 330329ef2b | |||
| 32610db521 | |||
| 4c142d2fa5 | |||
| cde38c5469 | |||
| dfc26e9c40 | |||
| 5476d9ec86 | |||
| 78ae575efe | |||
| 3577aa13bc | |||
| 2ce3d322ca | |||
| 27c42a6a92 | |||
| 61ce53bfd3 | |||
| d0af1c7116 | |||
| ec2b973fc0 | |||
| 98b48377cd | |||
| eb9579e1b6 | |||
| a689039ae2 | |||
| 3da17559e9 | |||
| 68c699882d | |||
| 51c56a8633 | |||
| 14d34e0b6b | |||
| fd31549a32 | |||
| d66ff687d4 | |||
| db5ebc701d | |||
| e6e3a10c87 | |||
| 8277ad04ab | |||
| caa83e88d2 | |||
| 177dbad101 | |||
| d7c1bdd27c | |||
| 775d07414c |
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
|
|
||||||
@@ -27,18 +27,15 @@ class Comment(object):
|
|||||||
endglobal
|
endglobal
|
||||||
|
|
||||||
snippet todo "TODO commment"
|
snippet todo "TODO commment"
|
||||||
`!p comment=Comment()
|
`!p comment=Comment();snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||||
snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet fixme "FIXME comment"
|
snippet fixme "FIXME comment"
|
||||||
`!p comment=Comment()
|
`!p comment=Comment();snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||||
snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet note "NOTE comment"
|
snippet note "NOTE comment"
|
||||||
`!p comment=Comment()
|
`!p comment=Comment();snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()`
|
||||||
snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()`
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
global !p
|
global !p
|
||||||
|
|||||||
@@ -1,13 +1,3 @@
|
|||||||
snippet _template "help file template"
|
|
||||||
*`!p snip.rv = snip.fn`* For Vim version 8.0 Last change: `!p
|
|
||||||
from datetime import datetime
|
|
||||||
snip.rv = datetime.now().strftime('%B %d, %Y')`
|
|
||||||
|
|
||||||
$0
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet s "help section"
|
snippet s "help section"
|
||||||
==============================================================================
|
==============================================================================
|
||||||
${1:1}. ${2:Section}`!p
|
${1:1}. ${2:Section}`!p
|
||||||
|
|||||||
@@ -3,13 +3,8 @@ snippet #! "Shebang"
|
|||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet main "Python main stub"
|
snippet main "Python main stub"
|
||||||
from argparse import ArgumentParser
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = ArgumentParser()
|
${0:pass}
|
||||||
$0
|
|
||||||
args = parser.parse_args()
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
function! s:set_lit_cfg_filetype()
|
function! s:set_lit_cfg_filetype()
|
||||||
set filetype=python
|
set filetype=python
|
||||||
ALEDisableBuffer
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
au BufNewFile,BufReadPost lit.cfg call s:set_lit_cfg_filetype()
|
au BufNewFile,BufReadPost lit.cfg call s:set_lit_cfg_filetype()
|
||||||
|
|||||||
1
after/ftplugin/cpp.lua
Normal file
1
after/ftplugin/cpp.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
vim.bo.commentstring = '//%s'
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
" Description: Expand snippet on file creation.
|
|
||||||
|
|
||||||
" Attempt to expand the _template snippet if this is a new file.
|
|
||||||
" https://noahfrederick.com/log/vim-templates-with-ultisnips-and-projectionist
|
|
||||||
function! snippet#template() abort
|
|
||||||
" Return if non-empty buffer or file exists.
|
|
||||||
if !(line('$') == 1 && getline('$') ==# '') || filereadable(expand('%'))
|
|
||||||
return
|
|
||||||
endif
|
|
||||||
" Attempt to expand the _template snippet.
|
|
||||||
execute "normal! i_template\<C-r>=UltiSnips#ExpandSnippet()\<CR>"
|
|
||||||
if g:ulti_expand_res == 0
|
|
||||||
" Expansions failed, undo insert.
|
|
||||||
silent! undo
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
@@ -16,6 +16,6 @@ function! tmux#isOption(option, value) abort
|
|||||||
if !tmux#inSession()
|
if !tmux#inSession()
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
let l:set_clipboard = trim(system('tmux show-options -g '.a:option))
|
let l:option = trim(system('tmux show-options -g '.a:option))
|
||||||
return l:set_clipboard ==# 'set-clipboard '.a:value
|
return l:option ==# a:option.' '.a:value
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
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,81 @@
|
|||||||
{
|
{
|
||||||
"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": "▸",
|
"inlayHint.enable": false,
|
||||||
"diagnostic.enableHighlightLineNumber": false
|
"powershell.integratedConsole.showOnStartup": false,
|
||||||
|
"snippets.priority": 100,
|
||||||
|
"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",
|
||||||
|
".gitlab/ci/*.yml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible-lint-config.json": [
|
||||||
|
".ansible-lint",
|
||||||
|
".config/ansible-lint.yml",
|
||||||
|
".config/ansible-lint.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/ansible-navigator.json": [
|
||||||
|
"ansible-navigator.yml",
|
||||||
|
"ansible-navigator.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/execution-environment.json": [
|
||||||
|
"execution-environment.yml",
|
||||||
|
"execution-environment.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/galaxy.json": [
|
||||||
|
"galaxy.yml",
|
||||||
|
"galaxy.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/inventory.json": [
|
||||||
|
"inventory.yaml",
|
||||||
|
"inventory.yml",
|
||||||
|
"inventory/*.yml",
|
||||||
|
"inventory/*.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/meta-runtime.json": [
|
||||||
|
"meta/runtime.yml",
|
||||||
|
"meta/runtime.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/molecule.json": [
|
||||||
|
"molecule/*/molecule.yml",
|
||||||
|
"molecule/*/molecule.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/playbook.json": [
|
||||||
|
"playbooks/*.yml",
|
||||||
|
"playbooks/*.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/requirements.json": [
|
||||||
|
"requirements.yml",
|
||||||
|
"requirements.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/rulebook.json": [
|
||||||
|
"rulebooks/*.yml",
|
||||||
|
"rulebooks/*.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/tasks.json": [
|
||||||
|
"tasks/*.yml",
|
||||||
|
"tasks/*.yaml",
|
||||||
|
"handlers/*.yml",
|
||||||
|
"handlers/*.yaml"
|
||||||
|
],
|
||||||
|
"https://raw.githubusercontent.com/ansible/ansible-lint/main/src/ansiblelint/schemas/vars.json": [
|
||||||
|
"playbooks/vars/*.yml",
|
||||||
|
"playbooks/vars/*.yaml",
|
||||||
|
"vars/*.yml",
|
||||||
|
"vars/*.yaml",
|
||||||
|
"defaults/*.yml",
|
||||||
|
"defaults/*.yaml",
|
||||||
|
"host_vars/*.yml",
|
||||||
|
"host_vars/*.yaml",
|
||||||
|
"group_vars/*.yml",
|
||||||
|
"group_vars/*.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"snippets.ultisnips.pythonPrompt": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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')
|
||||||
@@ -200,11 +202,6 @@ if has('gui_running') || &t_Co == 256
|
|||||||
call s:hi('Important', '220', '', 'bold')
|
call s:hi('Important', '220', '', 'bold')
|
||||||
call s:hi('Research', '202', '', 'bold')
|
call s:hi('Research', '202', '', 'bold')
|
||||||
|
|
||||||
call s:hi('ALEError', '160', '', '')
|
|
||||||
call s:hi('ALEWarning', '129', '', '')
|
|
||||||
call s:hi('ALEErrorSign', '160', '233', 'bold')
|
|
||||||
call s:hi('ALEWarningSign', '129', '233', 'bold')
|
|
||||||
|
|
||||||
call s:hi('CocErrorSign', '160', '233', '')
|
call s:hi('CocErrorSign', '160', '233', '')
|
||||||
call s:hi('CocErrorFloat', '160', '235', '')
|
call s:hi('CocErrorFloat', '160', '235', '')
|
||||||
call s:hi('CocWarningSign', '129', '233', '')
|
call s:hi('CocWarningSign', '129', '233', '')
|
||||||
@@ -213,6 +210,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
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
" Add <> to % matches
|
||||||
|
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
|
||||||
|
|||||||
11
ginit.vim
11
ginit.vim
@@ -1,7 +1,8 @@
|
|||||||
if exists(':GuiFont')
|
if exists(':GuiFont')
|
||||||
if platform#is_windows()
|
GuiFont! CaskaydiaCove\ Nerd\ Font\ Mono:h9
|
||||||
GuiFont Consolas:h9
|
endif
|
||||||
else
|
|
||||||
GuiFont Source\ Code\ Pro:h9
|
if exists(':GuiTabline')
|
||||||
endif
|
" Don't use GUI tabline, matches terminal tabline.
|
||||||
|
GuiTabline 0
|
||||||
endif
|
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
|
||||||
|
|||||||
28
nodejs-linux.yaml
Normal file
28
nodejs-linux.yaml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
- name: nodejs get json containing latest version
|
||||||
|
uri:
|
||||||
|
url: https://nodejs.org/dist/index.json
|
||||||
|
register: latest
|
||||||
|
|
||||||
|
- name: nodejs create directory for downloaded package
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
dest: ~/.local/src
|
||||||
|
|
||||||
|
- name: nodejs download latest package
|
||||||
|
get_url:
|
||||||
|
url: 'https://nodejs.org/dist/{{latest.json[0].version}}/node-{{latest.json[0].version}}-linux-x64.tar.gz'
|
||||||
|
dest: ~/.local/src/node.tar.gz
|
||||||
|
|
||||||
|
- name: nodejs extract downloaded package
|
||||||
|
unarchive:
|
||||||
|
src: ~/.local/src/node.tar.gz
|
||||||
|
dest: ~/.local/src
|
||||||
|
remote_src: true
|
||||||
|
|
||||||
|
- name: nodejs create symlink links
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: '~/.local/src/node-{{latest.json[0].version}}-linux-x64/bin/{{item}}'
|
||||||
|
dest: '~/.local/bin/{{item}}'
|
||||||
|
with_items: [corepack, node, npm, npx]
|
||||||
Submodule pack/minpac/opt/minpac deleted from 6cf985065a
@@ -12,19 +12,12 @@ 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!``
|
||||||
|
|
||||||
" Read template into buffer then send line 1 to the black hold register
|
" Read template into buffer then send line 1 to the black hold register
|
||||||
au BufNewFile todo.md read ~/.vim/templates/skeleton.todo.md | 1delete _
|
au BufNewFile todo.md read ~/.vim/templates/skeleton.todo.md | 1delete _
|
||||||
" Attempt to expand snippet named `_template` if it exists
|
|
||||||
au BufNewFile * silent! call snippet#template()
|
|
||||||
" Do the same when filetype changes to help
|
|
||||||
au FileType help silent! call snippet#template()
|
|
||||||
|
|
||||||
" Augment vim-signify by modifying it's autocmds
|
" Augment vim-signify by modifying it's autocmds
|
||||||
au User SignifyAutocmds call do#signify()
|
au User SignifyAutocmds call do#signify()
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,14 @@
|
|||||||
" coc.nvim
|
" coc.nvim
|
||||||
nmap <silent> <leader>fi <Plug>(coc-fix-current)
|
inoremap <silent><expr> <TAB> coc#pum#visible() ? coc#pum#confirm() : "\<TAB>"
|
||||||
nmap <silent> <leader>gd <Plug>(coc-definition)
|
nnoremap <silent> <leader>fi <Plug>(coc-fix-current)
|
||||||
nmap <silent> <leader>gt <Plug>(coc-type-definition)
|
nnoremap <silent> <leader>gd <Plug>(coc-definition)
|
||||||
nmap <silent> <leader>sd <Plug>(coc-diagnostic-info)
|
nnoremap <silent> <leader>gt <Plug>(coc-type-definition)
|
||||||
nmap <silent> <leader>gr <Plug>(coc-references)
|
nnoremap <silent> <leader>sd <Plug>(coc-diagnostic-info)
|
||||||
nmap <silent> K :call do#show_documentation()<CR>
|
nnoremap <silent> <leader>gr <Plug>(coc-references)
|
||||||
nmap <silent> <C-n> <Plug>(coc-diagnostic-next)
|
nnoremap <silent> <leader>gu <Plug>(coc-references-used)
|
||||||
nmap <silent> <C-p> <Plug>(coc-diagnostic-prev)
|
nnoremap <silent> K :call do#show_documentation()<CR>
|
||||||
|
nnoremap <silent> <C-n> <Plug>(coc-diagnostic-next)
|
||||||
|
nnoremap <silent> <C-p> <Plug>(coc-diagnostic-prev)
|
||||||
|
|
||||||
if has('nvim')
|
if has('nvim')
|
||||||
" Make nvim :terminal more like vim :terminal
|
" Make nvim :terminal more like vim :terminal
|
||||||
@@ -64,7 +66,12 @@ nnoremap k gk
|
|||||||
nnoremap <leader>w :w!<CR>
|
nnoremap <leader>w :w!<CR>
|
||||||
|
|
||||||
" Switch panes in a tmux aware way
|
" Switch panes in a tmux aware way
|
||||||
if !has('win32')
|
if !tmux#inSession() || has('win32')
|
||||||
|
nnoremap <silent> <C-h> <C-w>h
|
||||||
|
nnoremap <silent> <C-j> <C-w>j
|
||||||
|
nnoremap <silent> <C-k> <C-w>k
|
||||||
|
nnoremap <silent> <C-l> <C-w>l
|
||||||
|
else
|
||||||
nnoremap <silent> <C-h> :TmuxNavigateLeft<CR>
|
nnoremap <silent> <C-h> :TmuxNavigateLeft<CR>
|
||||||
nnoremap <silent> <C-j> :TmuxNavigateDown<CR>
|
nnoremap <silent> <C-j> :TmuxNavigateDown<CR>
|
||||||
nnoremap <silent> <C-k> :TmuxNavigateUp<CR>
|
nnoremap <silent> <C-k> :TmuxNavigateUp<CR>
|
||||||
@@ -84,11 +91,6 @@ if !has('win32')
|
|||||||
tnoremap <silent> <C-w>k <C-w>N:TmuxNavigateUp<CR>
|
tnoremap <silent> <C-w>k <C-w>N:TmuxNavigateUp<CR>
|
||||||
tnoremap <silent> <C-w>l <C-w>N:TmuxNavigateRight<CR>
|
tnoremap <silent> <C-w>l <C-w>N:TmuxNavigateRight<CR>
|
||||||
endif
|
endif
|
||||||
else
|
|
||||||
nnoremap <silent> <C-h> <C-w>h
|
|
||||||
nnoremap <silent> <C-j> <C-w>j
|
|
||||||
nnoremap <silent> <C-k> <C-w>k
|
|
||||||
nnoremap <silent> <C-l> <C-w>l
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Quick tabs
|
" Quick tabs
|
||||||
@@ -115,6 +117,10 @@ else
|
|||||||
noremap <leader>p "+p
|
noremap <leader>p "+p
|
||||||
noremap <leader>P "+P
|
noremap <leader>P "+P
|
||||||
endif
|
endif
|
||||||
|
if has('nvim-0.5.2')
|
||||||
|
" Undo neovim's default mapping of Y to y$
|
||||||
|
unmap Y
|
||||||
|
endif
|
||||||
|
|
||||||
" Quickly access spelling menu
|
" Quickly access spelling menu
|
||||||
inoremap <C-s> <C-g>u<C-X>s
|
inoremap <C-s> <C-g>u<C-X>s
|
||||||
|
|||||||
@@ -112,6 +112,8 @@ set isfname-=:
|
|||||||
set hlsearch incsearch
|
set hlsearch incsearch
|
||||||
" Set ignore search case unless mixed
|
" Set ignore search case unless mixed
|
||||||
set ignorecase smartcase
|
set ignorecase smartcase
|
||||||
|
" Don't ignore case in command line file completions
|
||||||
|
set nofileignorecase
|
||||||
|
|
||||||
" Allow buffers with changes to be hidden
|
" Allow buffers with changes to be hidden
|
||||||
set hidden
|
set hidden
|
||||||
@@ -152,11 +154,7 @@ set formatoptions+=rq
|
|||||||
|
|
||||||
" Always show the signcolum
|
" Always show the signcolum
|
||||||
if exists('&signcolumn')
|
if exists('&signcolumn')
|
||||||
try
|
set signcolumn=yes
|
||||||
set signcolumn=number
|
|
||||||
catch /E474/
|
|
||||||
set signcolumn=yes
|
|
||||||
endtry
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Enable modeline
|
" Enable modeline
|
||||||
@@ -176,7 +174,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"
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ scriptencoding utf-8
|
|||||||
set laststatus=2
|
set laststatus=2
|
||||||
|
|
||||||
" Define color variables.
|
" Define color variables.
|
||||||
let g:statusline#light_green = {'fg': ['235', '#080808'], 'bg': [ '35', '#0087ff']}
|
let g:statusline#light_green = {'fg': ['235', '#262626'], 'bg': [ '35', '#00af5f']}
|
||||||
let g:statusline#light_blue = {'fg': ['235', '#080808'], 'bg': [ '33', '#0087ff']}
|
let g:statusline#light_blue = {'fg': ['235', '#262626'], 'bg': [ '33', '#0087ff']}
|
||||||
let g:statusline#light_orange = {'fg': ['235', '#080808'], 'bg': ['209', '#eb754d']}
|
let g:statusline#light_orange = {'fg': ['235', '#262626'], 'bg': ['209', '#ff875f']}
|
||||||
let g:statusline#light_red = {'fg': ['235', '#080808'], 'bg': ['124', '#af0000']}
|
let g:statusline#light_red = {'fg': ['235', '#262626'], 'bg': ['124', '#af0000']}
|
||||||
let g:statusline#light_grey = {'fg': ['250', '#bcbcbc'], 'bg': ['236', '#303030']}
|
let g:statusline#light_grey = {'fg': ['235', '#262626'], 'bg': ['246', '#949494']}
|
||||||
let g:statusline#light_violet = {'fg': ['235', '#080808'], 'bg': [ '99', '#986fec']}
|
let g:statusline#light_violet = {'fg': ['235', '#262626'], 'bg': [ '99', '#875fff']}
|
||||||
let g:statusline#dark_white = {'fg': [ '15', '#ffffff'], 'bg': ['233', '#121212']}
|
let g:statusline#dark_white = {'fg': [ '15', '#ffffff'], 'bg': ['233', '#121212']}
|
||||||
let g:statusline#dark_yellow = {'fg': ['179', '#dfaf5f'], 'bg': ['233', '#121212']}
|
let g:statusline#dark_yellow = {'fg': ['179', '#dfaf5f'], 'bg': ['233', '#121212']}
|
||||||
let g:statusline#dark_grey = {'fg': ['244', '#808080'], 'bg': ['233', '#121212']}
|
let g:statusline#dark_grey = {'fg': ['244', '#808080'], 'bg': ['233', '#121212']}
|
||||||
|
|||||||
150
tasks.yaml
150
tasks.yaml
@@ -1,37 +1,121 @@
|
|||||||
---
|
---
|
||||||
- name: (neo)vim clone minpac
|
- set_fact:
|
||||||
git:
|
plugin_dir: '{{vim_config_dir}}/pack/managed'
|
||||||
repo: https://github.com/k-takata/minpac.git
|
plugins:
|
||||||
dest: pack/minpac/opt/minpac
|
# ====================== Completion & Diagnostics ========================
|
||||||
|
|
||||||
- name: (neo)vim install pip packages
|
# Conqueror of Completion
|
||||||
pip:
|
- repo: neoclide/coc.nvim
|
||||||
name: '{{item}}'
|
branch: release
|
||||||
state: latest
|
# Snippet collection
|
||||||
extra_args: --user
|
- repo: honza/vim-snippets
|
||||||
with_items:
|
# Completion for vimscript
|
||||||
- cmake-language-server
|
- repo: vim-scripts/vimomni
|
||||||
- cmakelint
|
mode: opt
|
||||||
- compdb
|
# Version control differences in the sign column
|
||||||
- vim-vint
|
- repo: mhinz/vim-signify
|
||||||
- yamllint
|
# Conflict marker utilities
|
||||||
|
- repo: rhysd/conflict-marker.vim
|
||||||
|
# Doxygen documentation stubs
|
||||||
|
- repo: vim-scripts/DoxygenToolkit.vim
|
||||||
|
mode: opt
|
||||||
|
# Easy table manipulation
|
||||||
|
- repo: dhruvasagar/vim-table-mode
|
||||||
|
|
||||||
- name: (neo)vim install apt packages
|
# =========================== User Interface =============================
|
||||||
when: ansible_distribution == 'Ubuntu' and
|
|
||||||
ansible_distribution_release == '20.04'
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: '{{item}}'
|
|
||||||
state: latest
|
|
||||||
with_items:
|
|
||||||
- clangd-12
|
|
||||||
|
|
||||||
- name: (neo)vim install clangd alternative
|
# Sanley numbered tabs in tabline
|
||||||
when: ansible_distribution == 'Ubuntu' and
|
- repo: mkitt/tabline.vim
|
||||||
ansible_distribution_release == '20.04'
|
# Fuzzy finder
|
||||||
become: true
|
# TODO: Still necessary?
|
||||||
alternatives:
|
- repo: junegunn/fzf
|
||||||
name: clangd
|
- repo: junegunn/fzf.vim
|
||||||
path: /usr/bin/clangd-12
|
# Replay macros with the enter key
|
||||||
link: /usr/local/bin/clangd
|
- repo: wincent/replay
|
||||||
priority: 120
|
# Improved % matching
|
||||||
|
- repo: andymass/vim-matchup
|
||||||
|
# Forgot about this...
|
||||||
|
- repo: kbenzie/note.vim
|
||||||
|
# View term and hex colors
|
||||||
|
- repo: guns/xterm-color-table.vim
|
||||||
|
|
||||||
|
# ============================== Text Objects ============================
|
||||||
|
|
||||||
|
# Library for creating text objects
|
||||||
|
- repo: kana/vim-textobj-user
|
||||||
|
# TODO: Doesn't work with nvim
|
||||||
|
- repo: kana/vim-textobj-entire
|
||||||
|
# Text object for URI's
|
||||||
|
- repo: jceb/vim-textobj-uri
|
||||||
|
# Text object for comment blocks
|
||||||
|
- repo: glts/vim-textobj-comment
|
||||||
|
# Text object for sentences
|
||||||
|
- repo: reedes/vim-textobj-sentence
|
||||||
|
# Text object & bindings for arguments
|
||||||
|
- repo: PeterRincker/vim-argumentative
|
||||||
|
|
||||||
|
# ================================ Tim Pope ==============================
|
||||||
|
|
||||||
|
# Toggle comments
|
||||||
|
- repo: tpope/vim-commentary
|
||||||
|
# Edit delimiters
|
||||||
|
- repo: tpope/vim-surround
|
||||||
|
# Better dot command
|
||||||
|
- repo: tpope/vim-repeat
|
||||||
|
# Git wrapper
|
||||||
|
- repo: tpope/vim-fugitive
|
||||||
|
# Unix command warppers
|
||||||
|
- repo: tpope/vim-eunuch
|
||||||
|
# Improved directory browser
|
||||||
|
- repo: tpope/vim-vinegar
|
||||||
|
# PascalCase to under_score to camelCase
|
||||||
|
# TODO: Copy the good bit remove this plugin
|
||||||
|
- repo: tpope/vim-abolish
|
||||||
|
# Mappings for pairs of tasks
|
||||||
|
- repo: tpope/vim-unimpaired
|
||||||
|
# Sane date manipulation
|
||||||
|
- repo: tpope/vim-speeddating
|
||||||
|
# Wisely add end{if,function} fork with cmake support
|
||||||
|
- repo: godbyk/vim-endwise
|
||||||
|
branch: patch-1
|
||||||
|
# Text object & formatting for json
|
||||||
|
- repo: tpope/vim-jdaddy
|
||||||
|
# Granular project configuration
|
||||||
|
- repo: tpope/vim-projectionist
|
||||||
|
|
||||||
|
# ================================ tmux ==================================
|
||||||
|
|
||||||
|
# Seemless vim/tmux pane navigation
|
||||||
|
- repo: 'christoomey/vim-tmux-navigator'
|
||||||
|
mode: opt
|
||||||
|
# Enable focus events when in tmux session
|
||||||
|
- repo: 'tmux-plugins/vim-tmux-focus-events'
|
||||||
|
mode: opt
|
||||||
|
|
||||||
|
# =============================== Syntax =================================
|
||||||
|
|
||||||
|
- repo: editorconfig/editorconfig-vim
|
||||||
|
- 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
|
||||||
|
- repo: sophacles/vim-bundle-mako
|
||||||
|
- repo: Glench/Vim-Jinja2-Syntax
|
||||||
|
|
||||||
|
- name: remove minpac directory
|
||||||
|
when: ansible_os_family != "Windows"
|
||||||
|
file:
|
||||||
|
path: '{{vim_config_dir}}/pack/minpac'
|
||||||
|
state: absent
|
||||||
|
- name: remove minpac directory
|
||||||
|
when: ansible_os_family == "Windows"
|
||||||
|
win_file:
|
||||||
|
path: '{{vim_config_dir}}/pack/minpac'
|
||||||
|
state: absent
|
||||||
|
|||||||
223
vimrc
223
vimrc
@@ -11,141 +11,16 @@ 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
|
||||||
|
|
||||||
" tabline.vim - sanely numbered tabs
|
" Disable unused providers
|
||||||
Pack 'mkitt/tabline.vim'
|
let g:loaded_node_provider = 0
|
||||||
|
let g:loaded_perl_provider = 0
|
||||||
|
let g:loaded_ruby_provider = 0
|
||||||
|
|
||||||
" coc.nvim Conqueror of Completion
|
" Markdown fenced code block languages
|
||||||
Pack 'neoclide/coc.nvim', {'branch': 'release'}
|
|
||||||
let g:coc_global_extensions = [
|
|
||||||
\ 'coc-clangd',
|
|
||||||
\ 'coc-cmake',
|
|
||||||
\ 'coc-css',
|
|
||||||
\ 'coc-html',
|
|
||||||
\ 'coc-jedi',
|
|
||||||
\ 'coc-json',
|
|
||||||
\ 'coc-marketplace',
|
|
||||||
\ 'coc-pyright',
|
|
||||||
\ 'coc-ultisnips',
|
|
||||||
\ 'coc-vimlsp',
|
|
||||||
\ 'coc-yaml',
|
|
||||||
\]
|
|
||||||
let g:coc_default_semantic_highlight_groups = 0
|
|
||||||
|
|
||||||
" ultisnips - snippet engine
|
|
||||||
Pack 'SirVer/ultisnips'
|
|
||||||
Pack 'honza/vim-snippets'
|
|
||||||
" vimomni - Completion for vimscript
|
|
||||||
Pack 'vim-scripts/vimomni', {'type': 'opt'}
|
|
||||||
|
|
||||||
" ale - Asynchronous Lint Engine
|
|
||||||
Pack 'w0rp/ale'
|
|
||||||
let g:ale_sign_error = '▸'
|
|
||||||
let g:ale_sign_warning = '▸'
|
|
||||||
let g:ale_echo_msg_format = '[%linter%] %s (%code%)'
|
|
||||||
let g:ale_linters = {'c': [], 'cpp': []}
|
|
||||||
let g:ale_cmake_cmakelint_options =
|
|
||||||
\ '-convention/filename,-package/consistency,-package/stdargs'
|
|
||||||
|
|
||||||
" Version control differences in the sign column
|
|
||||||
Pack 'mhinz/vim-signify'
|
|
||||||
let g:signify_sign_change = '~'
|
|
||||||
|
|
||||||
" vim-textobj-user - library for creating text objects
|
|
||||||
Pack 'kana/vim-textobj-user'
|
|
||||||
" vim-textobj-entire - Entire file text object
|
|
||||||
let g:textobj_entire_no_default_key_mappings = 1
|
|
||||||
Pack 'kana/vim-textobj-entire'
|
|
||||||
xmap a% <Plug>(textobj-entire-a)
|
|
||||||
omap a% <Plug>(textobj-entire-a)
|
|
||||||
xmap i% <Plug>(textobj-entire-i)
|
|
||||||
omap i% <Plug>(textobj-entire-i)
|
|
||||||
" vim-textobj-parameter - Parameter text object
|
|
||||||
Pack 'sgur/vim-textobj-parameter'
|
|
||||||
" vim-textobj-uri - URI text object
|
|
||||||
Pack 'jceb/vim-textobj-uri'
|
|
||||||
" vim-textobj-comment - Comment text object
|
|
||||||
Pack 'glts/vim-textobj-comment'
|
|
||||||
omap a/ <Plug>(textobj-comment-a)
|
|
||||||
xmap a/ <Plug>(textobj-comment-a)
|
|
||||||
omap i/ <Plug>(textobj-comment-i)
|
|
||||||
xmap i/ <Plug>(textobj-comment-i)
|
|
||||||
" vim-textobj-sentence - Improved sentence text object
|
|
||||||
Pack 'reedes/vim-textobj-sentence'
|
|
||||||
|
|
||||||
" vim-commentary - toggle comments
|
|
||||||
Pack 'tpope/vim-commentary'
|
|
||||||
" vim-surround - edit delimiters
|
|
||||||
Pack 'tpope/vim-surround'
|
|
||||||
" vim-repeat - better dot command
|
|
||||||
Pack 'tpope/vim-repeat'
|
|
||||||
" vim-fugitive - git wrapper
|
|
||||||
Pack 'tpope/vim-fugitive'
|
|
||||||
" vim-eunuch - unix command warppers
|
|
||||||
Pack 'tpope/vim-eunuch'
|
|
||||||
" vim-vinegar - improved directory browser
|
|
||||||
Pack 'tpope/vim-vinegar'
|
|
||||||
" vim-abolish - CamelCase to under_score to mixedCase
|
|
||||||
" TODO: Copy the good bit remove this plugin
|
|
||||||
Pack 'tpope/vim-abolish'
|
|
||||||
" vim-unimpaired - for pairs of tasks
|
|
||||||
Pack 'tpope/vim-unimpaired'
|
|
||||||
" vim-speeddating - sane date manipulation
|
|
||||||
Pack 'tpope/vim-speeddating'
|
|
||||||
" vim-endwise - wisely add end{if,function}, fork with cmake support
|
|
||||||
Pack 'godbyk/vim-endwise', {'rev': 'patch-1'}
|
|
||||||
" vim-jdaddy - text object & formatting for json
|
|
||||||
Pack 'tpope/vim-jdaddy'
|
|
||||||
" vim-projectionist - granular project configuration
|
|
||||||
Pack 'tpope/vim-projectionist'
|
|
||||||
|
|
||||||
" fzf.vim - Fuzzy finder
|
|
||||||
Pack 'junegunn/fzf'
|
|
||||||
Pack 'junegunn/fzf.vim'
|
|
||||||
let g:fzf_action = {
|
|
||||||
\ 'ctrl-t': 'tab split',
|
|
||||||
\ 'ctrl-s': 'split',
|
|
||||||
\ 'ctrl-v': 'vsplit'
|
|
||||||
\ }
|
|
||||||
|
|
||||||
Pack 'kbenzie/note.vim'
|
|
||||||
let g:note_directory = '~/Sync/Notes'
|
|
||||||
|
|
||||||
if !has('win32')
|
|
||||||
" Seemless vim/tmux pane navigation
|
|
||||||
Pack 'christoomey/vim-tmux-navigator'
|
|
||||||
let g:tmux_navigator_no_mappings = 1
|
|
||||||
" Enable focus events when in tmux session
|
|
||||||
Pack 'tmux-plugins/vim-tmux-focus-events'
|
|
||||||
endif
|
|
||||||
|
|
||||||
" replay macros with the enter key
|
|
||||||
Pack 'wincent/replay'
|
|
||||||
" vim-matchit - Improved % matching
|
|
||||||
Pack 'andymass/vim-matchup'
|
|
||||||
let g:matchup_matchparen_offscreen = {'method': 'status_manual'}
|
|
||||||
|
|
||||||
" vim-table-mode - Easy table manipulation
|
|
||||||
Pack 'dhruvasagar/vim-table-mode'
|
|
||||||
let g:table_mode_map_prefix = '<leader>t'
|
|
||||||
let g:table_mode_toggle_map = 'M'
|
|
||||||
|
|
||||||
" DoxygenToolkit.vim - documentation stubs
|
|
||||||
Pack 'vim-scripts/DoxygenToolkit.vim', {'type': 'opt'}
|
|
||||||
let g:DoxygenToolkit_commentType = 'C++'
|
|
||||||
|
|
||||||
" markdown fenced code block languages
|
|
||||||
let g:markdown_fenced_languages =
|
let g:markdown_fenced_languages =
|
||||||
\ ['cpp', 'c', 'cmake', 'console', 'sh', 'vim', 'python', 'yaml']
|
\ ['cpp', 'c', 'cmake', 'console', 'sh', 'vim', 'python', 'yaml']
|
||||||
|
|
||||||
@@ -161,25 +36,81 @@ let g:rst_syntax_code_list = {
|
|||||||
\ 'python': ['python']
|
\ 'python': ['python']
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" Python folding
|
|
||||||
Pack 'kalekundert/vim-coiled-snake'
|
|
||||||
|
|
||||||
" Enable builtin syntax folding
|
" Enable builtin syntax folding
|
||||||
let g:xml_syntax_folding = 1
|
let g:xml_syntax_folding = 1
|
||||||
let g:sh_fold_enabled = 1
|
let g:sh_fold_enabled = 1
|
||||||
|
|
||||||
" xterm-color-table.vim - view term and hex colors
|
if wsl#isDetected()
|
||||||
Pack 'guns/xterm-color-table.vim'
|
" Make gx work in WSL
|
||||||
|
let g:netrw_browsex_viewer='cmd.exe /C start'
|
||||||
|
endif
|
||||||
|
|
||||||
" Syntax plugins
|
if tmux#inSession()
|
||||||
Pack 'kbenzie/vim-spirv'
|
" Seemless vim/tmux pane navigation
|
||||||
|
packadd vim-tmux-navigator
|
||||||
|
let g:tmux_navigator_no_mappings = 1
|
||||||
|
" Enable focus events when in tmux session
|
||||||
|
packadd vim-tmux-focus-events
|
||||||
|
endif
|
||||||
|
|
||||||
|
" coc.nvim
|
||||||
|
let g:coc_global_extensions = [
|
||||||
|
\ 'coc-clangd',
|
||||||
|
\ 'coc-cmake',
|
||||||
|
\ 'coc-css',
|
||||||
|
\ 'coc-docker',
|
||||||
|
\ 'coc-html',
|
||||||
|
\ 'coc-jedi',
|
||||||
|
\ 'coc-json',
|
||||||
|
\ 'coc-marketplace',
|
||||||
|
\ 'coc-pyright',
|
||||||
|
\ 'coc-snippets',
|
||||||
|
\ 'coc-vimlsp',
|
||||||
|
\ 'coc-yaml',
|
||||||
|
\]
|
||||||
|
if has("win32")
|
||||||
|
let g:coc_global_extensions += [
|
||||||
|
\ 'coc-powershell'
|
||||||
|
\]
|
||||||
|
endif
|
||||||
|
let g:coc_default_semantic_highlight_groups = 0
|
||||||
|
|
||||||
|
" vim-signify
|
||||||
|
let g:signify_sign_change = '~'
|
||||||
|
|
||||||
|
" vim-textobj-entire
|
||||||
|
let g:textobj_entire_no_default_key_mappings = 1
|
||||||
|
xmap a% <Plug>(textobj-entire-a)
|
||||||
|
omap a% <Plug>(textobj-entire-a)
|
||||||
|
xmap i% <Plug>(textobj-entire-i)
|
||||||
|
omap i% <Plug>(textobj-entire-i)
|
||||||
|
" vim-textobj-comment
|
||||||
|
omap a/ <Plug>(textobj-comment-a)
|
||||||
|
xmap a/ <Plug>(textobj-comment-a)
|
||||||
|
omap i/ <Plug>(textobj-comment-i)
|
||||||
|
xmap i/ <Plug>(textobj-comment-i)
|
||||||
|
|
||||||
|
" fzf.vim
|
||||||
|
let g:fzf_action = {
|
||||||
|
\ 'ctrl-t': 'tab split',
|
||||||
|
\ 'ctrl-s': 'split',
|
||||||
|
\ 'ctrl-v': 'vsplit'
|
||||||
|
\ }
|
||||||
|
|
||||||
|
" note.vim
|
||||||
|
let g:note_directory = '~/Sync/Notes'
|
||||||
|
|
||||||
|
" vim-matchit
|
||||||
|
let g:matchup_matchparen_offscreen = {'method': 'status_manual'}
|
||||||
|
|
||||||
|
" vim-table-mode
|
||||||
|
let g:table_mode_map_prefix = '<leader>t'
|
||||||
|
let g:table_mode_toggle_map = 'M'
|
||||||
|
|
||||||
|
" DoxygenToolkit.vim
|
||||||
|
let g:DoxygenToolkit_commentType = 'C++'
|
||||||
|
|
||||||
|
" vim-spirv
|
||||||
|
let g:spirv_enable_current_id = 0
|
||||||
|
let g:spirv_enable_extinst_error = 0
|
||||||
let g:spirv_current_id_highlight = 'ctermbg=234, guibg=#1c1c1c'
|
let g:spirv_current_id_highlight = 'ctermbg=234, guibg=#1c1c1c'
|
||||||
Pack 'rperier/vim-cmake-syntax'
|
|
||||||
Pack 'tikhomirov/vim-glsl'
|
|
||||||
Pack 'beyondmarc/hlsl.vim'
|
|
||||||
Pack 'frasercrmck/opencl.vim'
|
|
||||||
Pack 'asciidoc/vim-asciidoc'
|
|
||||||
Pack 'mustache/vim-mustache-handlebars'
|
|
||||||
Pack 'joshglendenning/vim-caddyfile'
|
|
||||||
Pack 'kbenzie/vim-khr'
|
|
||||||
Pack 'jrozner/vim-antlr'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user