preservim / nerdtree

A tree explorer plugin for vim.
Do What The F*ck You Want To Public License
19.56k stars 1.44k forks source link

Error opening `.astro` files #1353

Closed stephencombs closed 1 year ago

stephencombs commented 1 year ago

Environment

-- Only required if you have packer configured as opt vim.cmd [[packadd packer.nvim]]

return require('packer').startup(function(use) -- Packer can manage itself use 'wbthomason/packer.nvim'

use {
    'nvim-telescope/telescope.nvim', tag = '0.1.1',
    -- or                            , branch = '0.1.x',
    requires = { { 'nvim-lua/plenary.nvim' } }
}

-- Themes
use('EdenEast/nightfox.nvim')
use('ful1e5/onedark.nvim')

-- Treesitter
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
use('HiPhish/nvim-ts-rainbow2')

use('theprimeagen/harpoon')
use('mbbill/undotree')
use('windwp/nvim-autopairs')

-- tpope
use('tpope/vim-fugitive')
use('tpope/vim-commentary')

-- Status Line
use('vim-airline/vim-airline')

-- LSP
use { 'VonHeikemen/lsp-zero.nvim',
    branch = 'v1.x',
    requires = {
        -- LSP Support
        { 'neovim/nvim-lspconfig' },       -- Required
        { 'williamboman/mason.nvim' },     -- Optional
        { 'williamboman/mason-lspconfig.nvim' }, -- Optional

        -- Autocompletion
        { 'hrsh7th/nvim-cmp' },   -- Required
        { 'hrsh7th/cmp-nvim-lsp' }, -- Required
        { 'hrsh7th/cmp-buffer' }, -- Optional
        { 'hrsh7th/cmp-path' },   -- Optional
        { 'saadparwaiz1/cmp_luasnip' }, -- Optional
        { 'hrsh7th/cmp-nvim-lua' }, -- Optional

        -- Snippets
        { 'L3MON4D3/LuaSnip' },       -- Required
        { 'rafamadriz/friendly-snippets' }, -- Optional
    }
}

use('jose-elias-alvarez/null-ls.nvim')

-- NERDTree
use { 'preservim/nerdtree'}

use('wuelnerdotexe/vim-astro')
use('wavded/vim-stylus')

end)



#### Steps to Reproduce the Issue
1. Open Neovim
2. Toggle open NERDTree
3. Navigate to `.astro` file
4. Open node (normal or custom open will reproduce)

Notice the following error displays, closing the error will open the file.

#### Current Behavior (Include screenshots where appropriate.)
![image](https://user-images.githubusercontent.com/26053206/227797703-8ac91620-3eaf-45c2-a4b4-160a482514e7.png)

#### Expected Result
Open .astro file without an error
stephencombs commented 1 year ago

Was found to be a nvim-treesitter issue