Skip to content

Quickly open JS Docs with the help of mozilla, including telescope and fzf-lua integrations.

Notifications You must be signed in to change notification settings

anmol-fzr/js-docs-mdn.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-docs-mdn.nvim

Quickly open JS Docs with the help of mozilla, including telescope and fzf-lua integrations.

Installation

Install via your favorite package manager, like lazy:

require('lazy').setup({
    {
        'anmol-fzr/js-docs-mdn.nvim'
        config = true,
        -- or 'nvim-telescope/telescope.nvim'
        dependencies = 'ibhagwan/fzf-lua'
        keys = { { '<leader>J', '<cmd>JSDocs<cr>' }}
    }
})

js-docs-mdn.nvim uses telescope or fzf-lua (whichever you've installed), which can be manually overidden.

js-docs-mdn.nvim opens the Mozilla documentation URLs based on your operating system. This can be overidden.

OS open_url
Windows start %s
OSX open %s
UNIX xdg-open %s

See the docs for more information.

Usage

Use the exposed command in vimscript:

:JSDocs

or in lua:

require('js-docs-mdn').js_docs_mdn()

About

Quickly open JS Docs with the help of mozilla, including telescope and fzf-lua integrations.

Topics

Resources

Stars

Watchers

Forks

Languages