commit 79d3f4edf81ab769cdad70433f5dea7afd41e5e1
parent b5f9b0b69510358ef378cde76a6dbbd0fc78a6f2
Author: Tomas Nemec <nemi@skaut.cz>
Date: Wed, 16 Feb 2022 07:38:17 +0100
update
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/lua/tms/p/luasnip.lua b/lua/tms/p/luasnip.lua
@@ -60,6 +60,8 @@ local snippets = function(luasnip)
},
html = {
s('if', fmt('*ngIf="{1}"', {i(1)})),
+ s('nf', fmt('*ngFor="let {1} of {2}"', {i(1), i(2)})),
+ s('nfi', fmt('*ngFor="let {1} of {2}; let i=index"', {i(1), i(2)})),
s('ni', fmt('[{1}]="{2}"', {i(1), i(2)})),
s('no', fmt('({1})="{2}"', {i(1), i(2)})),
s('nb', fmt('[({1})]="{2}"', {i(1), i(2)})),
diff --git a/plugin/quickfix.vim b/plugin/quickfix.vim
@@ -14,9 +14,9 @@ function! ToggleList(bufname, pfx)
endif
endfor
if a:pfx == 'l' && len(getloclist(0)) == 0
- echohl ErrorMsg
- echo "Location List is Empty."
- return
+ echohl ErrorMsg
+ echo "Location List is Empty."
+ return
endif
let winnr = winnr()
exec(a:pfx.'open')