Skip to content

Commit 12463cf

Browse files
author
hrsh7th
committed
Improve keyword_pattern
1 parent d66c4c2 commit 12463cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/cmp_buffer/source.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ local buffer = require('cmp_buffer.buffer')
1111
---@type cmp_buffer.Options
1212
local defaults = {
1313
keyword_length = 3,
14-
keyword_pattern = [[\%(-\?\d\+\%(\.\d\+\)\?\|\h\w*\%([\-]\w*\)*\)]],
14+
keyword_pattern = [[\%(-\?\d\+\%(\.\d\+\)\?\|\h\%(\w\|á\|Á\|é\|É\|í\|Í\|ó\|Ó\|ú\|Ú\)*\%(-\%(\w\|á\|Á\|é\|É\|í\|Í\|ó\|Ó\|ú\|Ú\)*\)*\)]],
1515
get_bufnrs = function()
1616
return { vim.api.nvim_get_current_buf() }
1717
end,

0 commit comments

Comments
 (0)