All Projects β†’ windwp β†’ nvim-ts-autotag

windwp / nvim-ts-autotag

Licence: MIT License
Use treesitter to auto close and auto rename html tag

Programming Languages

lua
6591 projects
Vim Script
2826 projects
Makefile
30231 projects

Projects that are alternatives of or similar to nvim-ts-autotag

Comment.nvim
🧠 πŸ’ͺ // Smart and powerful comment plugin for neovim. Supports treesitter, dot repeat, left-right/up-down motions, hooks, and more
Stars: ✭ 796 (+89.07%)
Mutual labels:  treesitter
kosmikoa.nvim
A dark color scheme for Neovim with support for LSP, Treesitter. This mirror is deprecated. Use the repo at https://sr.ht/~novakane/kosmikoa.nvim/
Stars: ✭ 23 (-94.54%)
Mutual labels:  treesitter
navigator.lua
Source code analysis & navigation plugin for Neovim. Navigate codes like a breeze🎐. Exploring LSP and 🌲Treesitter symbols a piece of 🍰. Take control like a boss 🦍.
Stars: ✭ 781 (+85.51%)
Mutual labels:  treesitter
boo-colorscheme-nvim
Boo is a colorscheme for Neovim with handcrafted support for LSP, Treesitter.
Stars: ✭ 62 (-85.27%)
Mutual labels:  treesitter
vscode.nvim
Neovim/Vim color scheme inspired by Dark+ and Light+ theme in Visual Studio Code
Stars: ✭ 362 (-14.01%)
Mutual labels:  treesitter
nightfox.nvim
🦊A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.
Stars: ✭ 1,489 (+253.68%)
Mutual labels:  treesitter
aurora
24-bit dark theme for (Neo)vim. Optimized for treesitter, LSP.
Stars: ✭ 141 (-66.51%)
Mutual labels:  treesitter
nvim
No description or website provided.
Stars: ✭ 28 (-93.35%)
Mutual labels:  treesitter
vim-lighthaus
A Lighthaus theme for (n)vim, vim-airline and lightline
Stars: ✭ 33 (-92.16%)
Mutual labels:  treesitter
Dotfiles
Well documented awesome dotfiles 😍 Many neovim lua configs, handy zsh/bash functions, fzf functions + more
Stars: ✭ 64 (-84.8%)
Mutual labels:  treesitter
action-autotag
Automatically generate a new tag when the manifest file (package.json, Dockerfile, custom file, etc) version changes.
Stars: ✭ 45 (-89.31%)
Mutual labels:  autotag
nvim-treesitter-lua
Tree-sitter Lua parser integration for nvim-treesitter.
Stars: ✭ 12 (-97.15%)
Mutual labels:  treesitter
nvim-highlite
A colorscheme template that is "lite" on logic for the developer.
Stars: ✭ 163 (-61.28%)
Mutual labels:  treesitter
zephyr-nvim
A dark neovim colorscheme written in lua
Stars: ✭ 196 (-53.44%)
Mutual labels:  treesitter
material.nvim
πŸ”± Material colorscheme for NeoVim written in Lua with built-in support for native LSP, TreeSitter and many more plugins
Stars: ✭ 574 (+36.34%)
Mutual labels:  treesitter
nvim context vt
Virtual text context for neovim treesitter
Stars: ✭ 193 (-54.16%)
Mutual labels:  treesitter
awesome-neovim
Awesome Configurations for C/C++,Zig,Web and Lua development in NeoVim
Stars: ✭ 54 (-87.17%)
Mutual labels:  treesitter
evil-textobj-tree-sitter
Tree-sitter powered textobjects for evil mode in Emacs
Stars: ✭ 88 (-79.1%)
Mutual labels:  treesitter
onedark.nvim
One dark and light colorscheme for neovim >= 0.5.0 written in lua based on Atom's One Dark and Light theme. Additionally, it comes with 5 color variant styles
Stars: ✭ 425 (+0.95%)
Mutual labels:  treesitter
neon
Customizable coloscheme with dark and light options, vivid colors and easy on the eye.
Stars: ✭ 100 (-76.25%)
Mutual labels:  treesitter

nvim-ts-autotag

Use treesitter to autoclose and autorename html tag

It work with html,tsx,vue,svelte,php,rescript.

Usage

Before        Input         After
------------------------------------
<div           >              <div></div>
<div></div>    ciwspan<esc>   <span></span>
------------------------------------

Setup

Neovim 0.5 and nvim-treesitter to work

User treesitter setup

require'nvim-treesitter.configs'.setup {
  autotag = {
    enable = true,
  }
}

or you can use a set up function

require('nvim-ts-autotag').setup()

Enable update on insert

If you have that issue #19

vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
    vim.lsp.diagnostic.on_publish_diagnostics,
    {
        underline = true,
        virtual_text = {
            spacing = 5,
            severity_limit = 'Warning',
        },
        update_in_insert = true,
    }
)

Default values

local filetypes = {
    'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue', 'tsx', 'jsx', 'rescript',
    'xml',
    'php',
    'markdown',
    'glimmer','handlebars','hbs'
}
local skip_tags = {
  'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'slot',
  'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr','menuitem'
}

Override default values

require'nvim-treesitter.configs'.setup {
  autotag = {
    enable = true,
    filetypes = { "html" , "xml" },
  }
}
-- OR
require('nvim-ts-autotag').setup({
  filetypes = { "html" , "xml" },
})
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].