mirror of
https://github.com/hrsh7th/cmp-buffer
synced 2025-04-07 18:14:45 +00:00
Improve keyword_pattern
This commit is contained in:
parent
d66c4c2d37
commit
12463cfcd9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user