Compare commits
11 Commits
0c515161b0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 00e30facd3 | |||
| e378b83549 | |||
| 1de326471c | |||
| aab402fa73 | |||
| 586141cb14 | |||
| f8407f959f | |||
| 97c7c974cf | |||
| 35acaa6cb2 | |||
| 3334451c2a | |||
| d29cfc6aab | |||
| 024268db74 |
@@ -27,18 +27,15 @@ class Comment(object):
|
||||
endglobal
|
||||
|
||||
snippet todo "TODO commment"
|
||||
`!p comment=Comment()
|
||||
snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||
`!p comment=Comment();snip.rv=comment.before()`TODO${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||
endsnippet
|
||||
|
||||
snippet fixme "FIXME comment"
|
||||
`!p comment=Comment()
|
||||
snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||
`!p comment=Comment();snip.rv=comment.before()`FIXME${1/.+/(/}$1${1/.+/)/}: $0`!p snip.rv=comment.after()`
|
||||
endsnippet
|
||||
|
||||
snippet note "NOTE comment"
|
||||
`!p comment=Comment()
|
||||
snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()`
|
||||
`!p comment=Comment();snip.rv=comment.before()`NOTE: $0`!p snip.rv=comment.after()`
|
||||
endsnippet
|
||||
|
||||
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"
|
||||
==============================================================================
|
||||
${1:1}. ${2:Section}`!p
|
||||
|
||||
@@ -3,13 +3,8 @@ snippet #! "Shebang"
|
||||
endsnippet
|
||||
|
||||
snippet main "Python main stub"
|
||||
from argparse import ArgumentParser
|
||||
|
||||
|
||||
def main():
|
||||
parser = ArgumentParser()
|
||||
$0
|
||||
args = parser.parse_args()
|
||||
${0:pass}
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
1
after/ftplugin/cpp.lua
Normal file
1
after/ftplugin/cpp.lua
Normal file
@@ -0,0 +1 @@
|
||||
vim.bo.commentstring = '//%s'
|
||||
@@ -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
|
||||
@@ -1,18 +1,81 @@
|
||||
{
|
||||
"inlayHint.enable": false,
|
||||
"cmake.lsp.enable": true,
|
||||
"diagnostic.enableHighlightLineNumber": false,
|
||||
"diagnostic.errorSign": "▸",
|
||||
"diagnostic.hintSign": "▸",
|
||||
"diagnostic.infoSign": "▸",
|
||||
"diagnostic.warningSign": "▸",
|
||||
"inlayHint.enable": 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
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
if exists(':GuiFont')
|
||||
if platform#is_windows()
|
||||
GuiFont! Source\ Code\ Pro:h10
|
||||
else
|
||||
GuiFont Source\ Code\ Pro:h9
|
||||
endif
|
||||
GuiFont! CaskaydiaCove\ Nerd\ Font\ Mono:h9
|
||||
endif
|
||||
|
||||
if exists(':GuiTabline')
|
||||
|
||||
@@ -18,10 +18,6 @@ augroup benieAugroup
|
||||
|
||||
" Read template into buffer then send line 1 to the black hold register
|
||||
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
|
||||
au User SignifyAutocmds call do#signify()
|
||||
|
||||
@@ -45,14 +45,14 @@
|
||||
- repo: kana/vim-textobj-user
|
||||
# TODO: Doesn't work with nvim
|
||||
- repo: kana/vim-textobj-entire
|
||||
# Text object for function parameters
|
||||
- repo: sgur/vim-textobj-parameter
|
||||
# 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 ==============================
|
||||
|
||||
@@ -107,6 +107,7 @@
|
||||
- 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"
|
||||
|
||||
7
vimrc
7
vimrc
@@ -15,6 +15,11 @@ endif
|
||||
set runtimepath+=~/.config/work
|
||||
set packpath+=~/.config/work
|
||||
|
||||
" Disable unused providers
|
||||
let g:loaded_node_provider = 0
|
||||
let g:loaded_perl_provider = 0
|
||||
let g:loaded_ruby_provider = 0
|
||||
|
||||
" Markdown fenced code block languages
|
||||
let g:markdown_fenced_languages =
|
||||
\ ['cpp', 'c', 'cmake', 'console', 'sh', 'vim', 'python', 'yaml']
|
||||
@@ -106,4 +111,6 @@ let g:table_mode_toggle_map = 'M'
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user