[nvim] feat: custom (colored) nodes for snippets

This commit is contained in:
David JULIEN 2022-04-29 00:23:08 +02:00
parent e23ea8343a
commit 695cd74e54
2 changed files with 21 additions and 2 deletions

View File

@ -31,7 +31,26 @@ ls.config.set_config({
ext_opts = {
[types.choiceNode] = {
active = {
virt_text = { { "choiceNode", "Comment" } },
virt_text = { { "", "LuaSnipChoice" } },
},
inactive = {
virt_text = { { "", "LuaSnipInactive" } },
},
},
[types.functionNode] = {
active = {
virt_text = { { "", "LuaSnipFunction" } },
},
inactive = {
virt_text = { { "", "LuaSnipInactive" } },
},
},
[types.insertNode] = {
active = {
virt_text = { { "", "LuaSnipInsert" } },
},
inactive = {
virt_text = { { "", "LuaSnipInactive" } },
},
},
},

@ -1 +1 @@
Subproject commit d77e1cfe127418ab00c6d5fb076f89cdf9b49e94
Subproject commit 9b46e0fa3d2bfca3b376961d822eb5d965da48ed