Browser words completion source for coc.nvim
-
Install the browser extension
Browser extension is used to grab words from web page and send them to the local server
-
Install coc.nvim
-
Install coc-browser
:CocInstall coc-browser
-
browser.shortcut: default:"web" -
browser.priority: default:5 -
browser.patterns: default:{"*": []}Javascript style regex patterns that defines the cursor position to enable autocomplete, empty array
[]means to enable for whole buffer.For example, in order to enable completion only if the cursor is in the comment region in javascript file, set this option as follows
The
*in the default value{"*": []}means to enable autocomplete for all filetypes. -
browser.port: default:8888Port used to transfer words from browser extension to local server
:CocCommand browser.clearCache: Clear completion source cache
MIT