1.5.0 • Published 3 years ago

coc-browser v1.5.0

Weekly downloads
126
License
MIT
Repository
github
Last release
3 years ago

coc-browser

publish npm version

Browser words completion source for coc.nvim

npm.io

Installation

  • 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

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

1.5.0

3 years ago

1.4.0

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.12

3 years ago

1.2.11

3 years ago

1.2.9

3 years ago

1.2.10

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago