Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 987 Bytes

README.md

File metadata and controls

56 lines (41 loc) · 987 Bytes

🌐 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:

  • Using the lualine statusline integration to show the node-type info in the statusline
  • Via a key-binding
  • Via a call to the plugin api

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()