josean-dev / dev-environment-files

2.63k stars 740 forks source link

nvim-tree not working with setup #55

Closed martincartledge closed 5 months ago

martincartledge commented 5 months ago

Recently went through your formatting and linting setup and now nvim-tree does not work when running nvim . in any project.

Output

Failed to run `config` for nvim-tree.lua
...are/nvim/lazy/nvim-tree.lua/lua/nvim-tree/appearance.lua:199: attempt to call field 'nvim_get_hl' (a nil value)
# stacktrace:
  - ~/.config/nvim/lua/martincartledge/plugins/nvim-tree.lua:16 _in_ **config**
  - /mason-lspconfig.nvim/lua/mason-lspconfig/lspconfig_hook.lua:55
  - /mason-lspconfig.nvim/lua/mason-lspconfig/init.lua:29
  - /mason-lspconfig.nvim/lua/mason-lspconfig/init.lua:28 _in_ **setup**
  - ~/.config/nvim/lua/martincartledge/plugins/lsp/mason.lua:27 _in_ **config**
  - ~/.config/nvim/lua/martincartledge/core/lazy.lua:14
Press ENTER or type command to continue
  - ~/.config/nvim/init.lua:2
Press ENTER or type command to continue

Dotfiles repo 👉 https://github.com/martincartledge/dotfiles/tree/main/nvim

Running :checkhealth lazy

    1 lazy: require("lazy.health").check()
    2 ========================================================================
    3 ## lazy.nvim
    4   - OK: Git installed
    5   - OK: no existing packages found by other package managers
    6   - OK: packer_compiled.lua not found

Running :checkhealth nvim-tree

    1 nvim-tree:
    2 ========================================================================
    3   - ERROR: No healthcheck found for "nvim-tree" plugin.