Add unicode snippets.

main
Joshua Potter 2024-01-24 10:47:35 -07:00
parent 69a9c8653d
commit 49b189d9ab
3 changed files with 17 additions and 0 deletions

View File

@ -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('')
)
}

View File

@ -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 = {

View File

@ -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}
'';
};