craigdallimore / nvim-log-helper

A lua treesitter plugin for neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nvim-log-helper

This is a neovim plugin. It does one thing:

Given the cursor is positioned within a JavaScript class method, invoking the plugin will insert console.log("<method-name>"); on the current line.

Usage

Requires nvim-treesitter.

Configure the plugin with lua like so:

vim.keymap.set('n', '<leader>fl', ':lua require"nvim-log-helper".run()<cr>')

License

MIT

About

A lua treesitter plugin for neovim

License:MIT License


Languages

Language:Lua 100.0%