Add unicode snippets.
parent
69a9c8653d
commit
49b189d9ab
|
@ -0,0 +1,15 @@
|
|||
local ls = require('luasnip')
|
||||
|
||||
local s = ls.snippet
|
||||
local t = ls.text_node
|
||||
|
||||
return {
|
||||
s(
|
||||
{
|
||||
trig = [[\_1]],
|
||||
wordTrig = false,
|
||||
snippetType = 'autosnippet',
|
||||
},
|
||||
t('₁')
|
||||
)
|
||||
}
|
|
@ -32,6 +32,7 @@ function M.setup()
|
|||
region_check_events = 'InsertEnter',
|
||||
delete_check_events = 'InsertLeave',
|
||||
store_selection_keys = '<tab>',
|
||||
enable_autosnippets = true,
|
||||
ext_opts = {
|
||||
[types.snippet] = {
|
||||
active = {
|
||||
|
|
|
@ -31,6 +31,7 @@ let
|
|||
plugin = pkgs.vimPlugins.luasnip;
|
||||
config = ''
|
||||
require('utils.luasnip').setup()
|
||||
require('luasnip').add_snippets('all', require('utf8.snippets'))
|
||||
${config.programs.neovim.nvim-snippets}
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue