diff --git a/init.lua b/init.lua index 5fa5097..b8df2cb 100644 --- a/init.lua +++ b/init.lua @@ -588,7 +588,12 @@ cmp.setup { }, sources = { { name = 'nvim_lsp' }, - { name = 'buffer' }, + { + name = 'buffer', + option = { + keyword_length = 4, + }, + }, { name = 'luasnip' }, { name = 'path' }, }, diff --git a/my_snippets/markdown.lua b/my_snippets/markdown.lua index 75bfa6c..052cf26 100644 --- a/my_snippets/markdown.lua +++ b/my_snippets/markdown.lua @@ -86,12 +86,12 @@ return { }, fmt( [[ - --- - title: {1} - date: {3} - id: {4} - tags: [{2}] - --- + --- + title: {1} + date: {3} + id: {4} + tags: [{2}] + --- ]], { @@ -147,5 +147,20 @@ return { }, { repeat_duplicates = true } ) + ), + s( + { + trig = "tags", + name = "Tags", + dscr = "Insert a one-line tags array, in a text file (markdown)." + }, + fmt( + [[ + tags: [{}] + ]], + { + i(1, "tags") + } + ) ) } diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index ab67d2a..b1182d4 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -6,3 +6,5 @@ neovim lua InfoBiblio Réaménagement +biodiversité +hyperindustrialisés diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 9c741af..4add06e 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ