Further migrate Neovim to Treesitter

Update colorscheme with better support.
Move snippets to be used.

Also extend ignore for RG integration
This commit is contained in:
Daniel Siepmann 2023-10-30 15:06:57 +01:00
parent d3497cf06b
commit 063fd1d98f
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
5 changed files with 71 additions and 70 deletions

View file

@ -16,11 +16,11 @@ let
colorscheme-smyckblue = pkgs.vimUtils.buildVimPlugin rec {
pname = "colorscheme-smyckblue";
version = "1.4.0";
version = "1.5.0";
src = pkgs.fetchgit {
url = "https://git.daniel-siepmann.de/danielsiepmann/vim-${pname}.git";
rev = "v${version}";
sha256 = "VII7O/0GT6iw8n3WQqH62a++0kNiKQwH6Qmsarxmoks=";
sha256 = "vpvKImO4C2dp5dMdUeNaXdpSVJ8ZqErMHlmAJFr4lNw=";
};
};
@ -325,6 +325,7 @@ in {
markdown
nix
php
phpdoc
rst
scss
sql

View file

@ -4,7 +4,9 @@ augroup typo3
autocmd BufWritePost **/sites/**/*.yaml :silent !rm */**/cache/**/sites-configuration.php
autocmd BufWritePost **/local_packages/**/Sites/**/*.yaml :silent !rm */**/cache/**/sites-configuration.php
autocmd BufWritePost **/Configuration/RequestMiddlewares.php :silent !rm */**/cache/**/middlewares_*
autocmd BufWritePost **/Configuration/Backend/Routes.php :silent !rm */**/cache/**/BackendRoutesFromPackages_*
autocmd BufWritePost **/Configuration/Backend/Routes.php :silent !rm */**/cache/**/BackendRoutesFromPackages_* */**/cache/**/BackendRoutes_*
autocmd BufWritePost **/Configuration/Backend/Modules.php :silent !rm */**/cache/**/BackendModules*
autocmd BufWritePost **/Configuration/Icons.php :silent !rm */**/cache/**/Icons_*
autocmd BufWritePost **/Configuration/Services.yaml,**/Configuration/Services/*.yaml,**/Configuration/Services.php :silent !rm */**/cache/**/DependencyInjectionContainer_*
" Extbase
@ -17,13 +19,13 @@ augroup typo3
autocmd BufWritePost **/Configuration/TCA/** :silent !rm */**/cache*/**/tca_base_*
autocmd BufWritePost **/*.xlf :silent !rm */**/cache/**/l10n/*
autocmd BufWritePost **/*.yml,**/*.yaml :silent !rm */**/cache/**/yamlsettings_form*
" Performance issues for typoscript, keep an eye
" Disable for now as cache flushing is slow.
" One can reload without browser cache in order to get changes applied.
" autocmd BufWritePost *.tsconfig,*.typoscript,*.ts,*/TypoScript/*.ts,*/TypoScript/*.txt :silent !rm -rf */**/var/**/pages/*
" autocmd BufWritePost *.tsconfig,*.typoscript,*.ts,*/TypoScript/*.ts,*/TypoScript/*.txt :silent !rm -rf */**/var/**/pagesection/*
" autocmd BufWritePost *.tsconfig,*.typoscript,*.ts,*/TypoScript/*.ts,*/TypoScript/*.txt :silent !rm -rf */**/var/**/cache_pages/*
" autocmd BufWritePost *.tsconfig,*.typoscript,*.ts,*/TypoScript/*.ts,*/TypoScript/*.txt :silent !rm -rf */**/var/**/cache_pagesection/*
autocmd BufWritePost *.typoscript :silent !rm -rf */**/cache/**/typoscript/constant*
autocmd BufWritePost *.typoscript :silent !rm -rf */**/cache/**/typoscript/ext-*
autocmd BufWritePost *.typoscript :silent !rm -rf */**/cache/**/typoscript/globals-*
autocmd BufWritePost *.typoscript :silent !rm -rf */**/cache/**/typoscript/setup-*
autocmd BufWritePost *.typoscript :silent !rm -rf */**/cache/**/typoscript/sys-template-*
autocmd BufWritePost *.tsconfig :silent !rm -rf */**/cache/**/typoscript/pagetsconfig-*
" ext:news
autocmd BufWritePost **/Classes/Domain/Model/News.php :silent !rm -rf */**/var/cache/code/news/*
@ -31,9 +33,5 @@ augroup typo3
" Also update ftdetect/typoscript.vim for detection of Typoscript
" autocmd BufWritePost *.tsconfig,*.typoscript,*.ts,*/TypoScript/*.ts,*/TypoScript/*.txt :redraw!
" Fix draw issue after potential error message in tmux environment
" => Should fix output instead of forcing redraw, just workaround.
" autocmd BufWritePost **/*.xlf,**/*.yml,**/*.yaml,**/ext_localconf.php,**/ext_tables.php,**/TCA/**,**/*.php :redraw!
autocmd BufEnter,BufRead **/de.*.xlf :setlocal spelllang=de
augroup END

View file

@ -1,57 +0,0 @@
snippet file Insert Fluid Template File with Namespace
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true"
>
${0}
</html>
snippet falias
<f:alias map="${1}">
${0}
</f:alias>
snippet ftrans
{f:translate(id: '${1}')}
snippet fdebug
<f:debug>${1:{_all}}</f:debug>${2}
snippet fcomment
<f:comment>
${0}
</f:comment>
snippet finput
<f:form.${1:textfield} property="${2}" />
snippet fselect
<f:form.select name="${1:name}" options="${2:{variable}}" />${3}
snippet furiresource
{f:uri.resource(path: '${1}')}
snippet fsubmit
<f:form.submit value="${1:value}" />${3}
snippet fform
<f:form action="${1}">
${2}
</f:form>
snippet fif
<f:if condition="${1}">
<f:then>
${2}
</f:then>
<f:else>
${3}
</f:else>
</f:if>
snippet ffor
<f:for each="${1}" as="${2}">
${3}
</f:for>
snippet flayout
{f:layout(name: '${0}')}
snippet frender
{f:render(${1:section}: '${0}', arguments: _all)}
snippet fcobject
{f:cObject(typoscriptObjectPath: '${0}', ${1:data: ''})}
snippet fsection
<f:section name="${1}">
${2}
</f:section>
snippet import
{namespace ${1}=${2:TYPO3\Fluid}\ViewHelpers}
snippet cdata
<![CDATA[$0]]>

View file

@ -15,3 +15,62 @@ snippet script
<script type="text/javascript">
${0}
</script>
snippet file Insert Fluid Template File with Namespace
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true"
>
${0}
</html>
snippet falias
<f:alias map="${1}">
${0}
</f:alias>
snippet ftrans
{f:translate(id: '${1}')}
snippet fdebug
<f:debug>${1:{_all}}</f:debug>${2}
snippet fcomment
<f:comment>
${0}
</f:comment>
snippet finput
<f:form.${1:textfield} property="${2}" />
snippet fselect
<f:form.select name="${1:name}" options="${2:{variable}}" />${3}
snippet furiresource
{f:uri.resource(path: '${1}')}
snippet fsubmit
<f:form.submit value="${1:value}" />${3}
snippet fform
<f:form action="${1}">
${2}
</f:form>
snippet fif
<f:if condition="${1}">
<f:then>
${2}
</f:then>
<f:else>
${3}
</f:else>
</f:if>
snippet ffor
<f:for each="${1}" as="${2}">
${3}
</f:for>
snippet flayout
{f:layout(name: '${0}')}
snippet frender
{f:render(${1:section}: '${0}', arguments: _all)}
snippet fcobject
{f:cObject(typoscriptObjectPath: '${0}', ${1:data: ''})}
snippet fsection
<f:section name="${1}">
${2}
</f:section>
snippet import
{namespace ${1}=${2:TYPO3\Fluid}\ViewHelpers}
snippet cdata
<![CDATA[$0]]>
snippet ftrans
{f:translate(id: '${1}')}

Binary file not shown.