diff --git a/lua/neorg/modules/core/integrations/nvim-cmp/module.lua b/lua/neorg/modules/core/integrations/nvim-cmp/module.lua index 835e7b71c..751324269 100644 --- a/lua/neorg/modules/core/integrations/nvim-cmp/module.lua +++ b/lua/neorg/modules/core/integrations/nvim-cmp/module.lua @@ -86,7 +86,7 @@ module.public = { end function module.private.source:get_trigger_characters() - return { "@", "-", "[", " ", "." } + return { "@", "-", "(", " ", "." } end module.private.cmp.register_source("neorg", module.private.source) diff --git a/lua/neorg/modules/core/norg/completion/module.lua b/lua/neorg/modules/core/norg/completion/module.lua index 7416b5a64..ba9e10dab 100644 --- a/lua/neorg/modules/core/norg/completion/module.lua +++ b/lua/neorg/modules/core/norg/completion/module.lua @@ -219,23 +219,23 @@ module.public = { }, }, { - regex = "^%s*%-+%s+%[([x%*%s]?)", + regex = "^%s*%-+%s+%(([x%*%s]?)", complete = { - { "[ ] ", label = "[ ] (undone)" }, - { "[-] ", label = "[-] (pending)" }, - { "[x] ", label = "[x] (done)" }, - { "[_] ", label = "[_] (cancelled)" }, - { "[!] ", label = "[!] (important)" }, - { "[+] ", label = "[+] (recurring)" }, - { "[=] ", label = "[=] (on hold)" }, - { "[?] ", label = "[?] (uncertain)" }, + { "( ) ", label = "( ) (undone)" }, + { "(-) ", label = "(-) (pending)" }, + { "(x) ", label = "(x) (done)" }, + { "(_) ", label = "(_) (cancelled)" }, + { "(!) ", label = "(!) (important)" }, + { "(+) ", label = "(+) (recurring)" }, + { "(=) ", label = "(=) (on hold)" }, + { "(?) ", label = "(?) (uncertain)" }, }, options = { type = "TODO", pre = function() - local sub = vim.api.nvim_get_current_line():gsub("^(%s*%-+%s+%[%s*)%]", "%1") + local sub = vim.api.nvim_get_current_line():gsub("^(%s*%-+%s+%(%s*)%)", "%1") if sub then vim.api.nvim_set_current_line(sub)