Home

Awesome

:globe_with_meridians: node-type.nvim

node-type screenshot

A Neovim plugin to show the currently selected node type from lsp and treesitter information.

The demo shows this plugin being used in several ways:

Installation

Lazy

{
    "roobert/node-type.nvim",
    config = function()
        require("node-type").setup()
    end,
}

Packer

use({
    "roobert/node-type.nvim",
    config = function()
        require("node-type").setup()
    end,
})

Usage

The default binding is <leader>n.

As a lualine statusline component:

require('lualine').setup {
  sections = {
      lualine_x = { require("node-type").statusline }
  }
}

Via the API:

require("node-type").get()