voldikss
coc-browser
TypeScript

See https://github.com/voldikss/coc-extensions

Last updated Aug 15, 2025
128
Stars
6
Forks
1
Issues
0
Stars/day
Attention Score
21
Language breakdown
No language data available.
โ–ธ Files click to expand
README

coc-browser

publish npm version

Browser words completion source for coc.nvim

Installation

Browser extension is used to grab words from web page and send them to the local server
  • Install coc-browser
:CocInstall coc-browser

Config

  • 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

"browser.patterns": {
    "javascript": [
      "^\\s*\\/\\/",
      "^\\s\\/\\",
      "^\\s\\"
    ]
  }

The in the default value {"": []} means to enable autocomplete for all filetypes.

  • browser.port:
default: 8888

Port used to transfer words from browser extension to local server

Command

  • :CocCommand browser.clearCache: Clear completion source cache

License

MIT

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท voldikss/coc-browser ยท Updated daily from GitHub