1.3 KiB
1.3 KiB
import-cost.nvim
Display the costs of javascript imports inside neovim with the power of import-cost.
Installation
- Install regularly with your neovim package manager
- Run
install.shwith your node.js package manager to setup import-cost:
sh install.sh '<your-package-manager>'
For example, a config with yarn and lazy.nvim may look like the following:
require('lazy').setup {
{
'barrett-ruth/import-cost.nvim',
build = 'sh install.sh yarn'
}
}
Configuration
Configure via the setup function (or just use the defaults):
require('import-cost').setup(opts)
See :h import-cost for more information
Acknowledgements
- wix/import-cost: provides the node backend that calculates the import costs
- import-cost: the original VSCode plugin that started it all
- vim-import-cost: showed me it was possible to do in neovim!
