L3MON4D3/LuaSniptree-sitter-c_sharpparser installed
To load dedicatedly for code-behind file in avalonia project, L3MON4D3/LuaSnip requires a specific filetype to distinguish from general C# file(following example uses axaml-cs).
And you should properly add detection pattern for it using vim.filetype.add.
require('luasnip').add_snippets('axaml-cs', require('avalonia-luasnip.snippets'))
vim.filetype.add {
pattern = {
['.*axaml%.cs'] = 'axaml-cs',
},
}Note
You can lazy-load this plugin using your package manager
directPropertystyledPropertyattachedPropertyroutedEvent