Skip to content

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

Notifications You must be signed in to change notification settings

roobert/node-type.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Languages