Improve keyword_pattern

This commit is contained in:
hrsh7th 2022-05-09 14:31:41 +09:00
parent d66c4c2d37
commit 12463cfcd9

View File

@ -11,7 +11,7 @@ local buffer = require('cmp_buffer.buffer')
---@type cmp_buffer.Options
local defaults = {
keyword_length = 3,
keyword_pattern = [[\%(-\?\d\+\%(\.\d\+\)\?\|\h\w*\%([\-]\w*\)*\)]],
keyword_pattern = [[\%(-\?\d\+\%(\.\d\+\)\?\|\h\%(\w\|á\|Á\|é\|É\|í\|Í\|ó\|Ó\|ú\|Ú\)*\%(-\%(\w\|á\|Á\|é\|É\|í\|Í\|ó\|Ó\|ú\|Ú\)*\)*\)]],
get_bufnrs = function()
return { vim.api.nvim_get_current_buf() }
end,