windwp / nvim-ts-autotag

Use treesitter to auto close and auto rename html tag
MIT License
1.63k stars 87 forks source link

nvim-ts-autotag not working in TS and PHP files #92

Closed gwapocom closed 1 year ago

gwapocom commented 1 year ago

Even with latest version its not working . . . see my details:

require'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" (the four listed parsers should always be installed) ensure_installed = { "tsx", "html", "css", "typescript", "lua", "vim", "help", "javascript" },

-- Install parsers synchronously (only applied to `ensure_installed`)
sync_install = false,

-- Automatically install missing parsers when entering buffer
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
auto_install = true,

highlight = {
    enable = true,
    additional_vim_regex_highlighting = false,
},

refactor = {
    highlight_definitions = { enable = true },
    smart_rename = {
        enable = true,
        keymaps = {
            smart_rename = "grr",
        },
    },
    navigation = {
        enable = true,
        keymaps = {
            goto_definition = "gnd",
            list_definitions = "gnD",
            list_definitions_toc = "gO",
            goto_next_usage = "<a-*>",
            goto_previous_usage = "<a-#>",
        },
    },
},
autotag = {
    enable = true
},

}

8==D -- 8==D --8==D --8==D --8==D --8==D --8==D --8==D --8==D --

return require('packer').startup(function() use 'wbthomason/packer.nvim' use 'EdenEast/nightfox.nvim' use 'kyazdani42/nvim-web-devicons' use 'kyazdani42/nvim-tree.lua'

use 'neovim/nvim-lspconfig'
use 'hrsh7th/nvim-cmp' -- Autocompletion plugin
use 'hrsh7th/cmp-nvim-lsp' -- LSP source for nvim-cmp
use 'saadparwaiz1/cmp_luasnip' -- Snippets source for nvim-cmp
use 'L3MON4D3/LuaSnip' -- Snippets plugin
use 'onsails/lspkind-nvim'

use 'rcarriga/nvim-notify'
use 'nvim-lualine/lualine.nvim'
use 'romgrk/barbar.nvim'

use { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' }
use 'nvim-treesitter/nvim-treesitter-refactor'
use { 'windwp/nvim-ts-autotag' }

end)

sample ts file:

let pedro = "pedre "

its not closing

sample php file:

<?php

?> |||||||||||||||||||||||||||||||||||||||||||||||||||| its not closing

||||||||||||||||||||||||||||||||||||||||||||||||||||

gwapocom commented 1 year ago

@windwp I summon thee . . .

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.