Skip to content

sharpchen/avalonia-luasnip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisite

  • L3MON4D3/LuaSnip
  • tree-sitter-c_sharp parser installed

Setup

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

Supported Snippets

  • directProperty
  • styledProperty
  • attachedProperty
  • routedEvent

About

Snippets for AvaloniaUI powered by LuaSnip

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages