neovim

Personal neovim configuration files
git clone git://gtms.dev:neovim
Log | Files | Refs

commit 70967d9edfc356a3cbc080e2ab0a1b13881fe041
parent 60cf44faea09c2cc86a13dfdefa5789b15ce7bdd
Author: Tomas Nemec <nemi@skaut.cz>
Date:   Wed, 29 Jun 2022 07:09:48 +0200

update

Diffstat:
Mafter/plugin/luasnip.lua | 44+++++++++++++++++++++++++++++++++-----------
Mplugin/diagnostic.lua | 2+-
Mplugin/keymap.lua | 2++
3 files changed, 36 insertions(+), 12 deletions(-)

diff --git a/after/plugin/luasnip.lua b/after/plugin/luasnip.lua @@ -58,17 +58,6 @@ ls.add_snippets('lua', { }) ls.add_snippets('dart', { - s('s', fmt('String {}{}', { i(1), i(2, ';') })), - s('sn', fmt('String? {}{}', { i(1), i(2, ';') })), - s('i', fmt('int {}{}', { i(1), i(2, ';') })), - s('in', fmt('int? {}{}', { i(1), i(2, ';') })), - s('n', fmt('num {}{}', { i(1), i(2, ';') })), - s('nn', fmt('num? {}{}', { i(1), i(2, ';') })), - s('d', fmt('double {}{}', { i(1), i(2, ';') })), - s('dn', fmt('double? {}{}', { i(1), i(2, ';') })), - s('D', fmt('dynamic {}{}', { i(1), i(2, ';') })), - s('f', fmt('final {}{}', { i(1), i(2, ';') })), - s('v', fmt('var {}{}', { i(1), i(2, ';') })), s('for', fmt([[ for (final {} in {}) {{ {} @@ -79,6 +68,39 @@ ls.add_snippets('dart', { {} }} ]], { i(1), i(2), i(3) })), + -- Angular + s('i', fmt([[ + @Input() + {}; + ]], { i(1) })), + s('o', fmt([[ + @Output() + Stream<{}> get {}; + ]], { i(1), i(2) })), + s('c', fmt([[ + @Component( + selector: '{}', + template: '{}' + changeDetection: ChangeDetectionStrategy.OnPush, + ) + class {} {{ + {} + }} + ]], { i(1), i(2), i(3), i(4) })), + s('d', fmt([[ + @Directive(selector: '{}') + class {} {{ + {} + }} + ]], { i(1), i(2), i(3) })), + s('vc', fmt([[ + @ViewChild({}) + {}? {} + ]], { i(1), i(2), i(3) })), + s('vch', fmt([[ + @ViewChildren({}) + List<{}>? {} + ]], { i(1), i(2), i(3) })), }) -- Angular diff --git a/plugin/diagnostic.lua b/plugin/diagnostic.lua @@ -20,4 +20,4 @@ vim.keymap.set('n', 'gs', d.open, o('Diagnostic Open for Line')) vim.keymap.set('n', 'gS', d.open_cursor, o('Diagnostic Open for Cursor')) vim.keymap.set('n', 'gll', d.loc, o('Diagnostic to Location List')) vim.keymap.set('n', 'glq', d.qf, o('Diagnostic to Quickfix List')) -vim.keymap.set('n', 'glQ', d.qf_error, o('Diagnostic to Quickfix List')) +vim.keymap.set('n', 'glQ', d.qf_error, o('Diagnostic of Error to Quickfix List')) diff --git a/plugin/keymap.lua b/plugin/keymap.lua @@ -63,3 +63,5 @@ vim.keymap.set('n', 'g.', 'gg') vim.keymap.set('n', 'v.', 'V') vim.keymap.set('n', '=.', '==') vim.keymap.set('n', 'gc.', 'gcc') + +vim.keymap.set('n', '<leader>D', '<cmd>!tree %:h<cr>')