NodeJs neovim tools that fcilitates javascript/typescript NodeJs development.
- nvim-treesitter is required with
json
parser installed
Using vim-plug
Plug 'stoleruradu/nodejs.nvim'
-- somewhere in your config
require('nodejs').setup()
Using packer.nvim
use { 'stoleruradu/nodejs.nvim' }
-- somewhere in your config
require('nodejs').setup()
Using lazy.nvim
-- plugins/nodejs.lua:
return { 'stoleruradu/nodejs.nvim', opts = {} }
Being in a package.json
file, put the cursor on a script under scripts
.
- use
<Leader>e
to run a npm script. - use
<C-c
> to stop the execution.