Skip to content

buschco/nvim-cmp-ts-tag-close

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nvim-cmp-ts-tag-close

A nvim-cmp source for closing tags provided by treesitter.

Heavily inspired by nvim-ts-autotag ❤️

Screen.Recording.2023-05-25.at.09.24.45.mov

Setup

Install (lazy.nvim)

  {
    'nvim-treesitter/nvim-treesitter',
    -- [...]
  },
  {
    'hrsh7th/nvim-cmp',
    dependencies = {
      'buschco/nvim-cmp-ts-tag-close',
    }
  }

Configure

require('nvim-cmp-ts-tag-close').setup({ skip_tags = { 'img' } })

Register

require('cmp').setup {
  sources = {
    { name = 'nvim-cmp-ts-tag-close' },
  }
}

Disclaimer

Expect bugs 🐞🪲

About

nvim-cmp source for closing tags

Topics

Resources

License

Stars

Watchers

Forks

Languages