luckasRanarison / tailwind-tools.nvim

An unofficial Tailwind CSS integration and tooling for Neovim
https://dotfyle.com/plugins/luckasRanarison/tailwind-tools.nvim
MIT License
396 stars 17 forks source link

Error when creating new files #59

Open AlejandroSanchez90 opened 1 month ago

AlejandroSanchez90 commented 1 month ago

Describe the bug each time i create a new file using nvim-tree then i get this error

stack traceback:
  [C]: in function 'nvim_buf_get_name'
  ...ocal/bin/nvim-linux64/share/nvim/runtime/lua/vim/uri.lua:82: in function 'uri_from_bufnr'
  ...bin/nvim-linux64/share/nvim/runtime/lua/vim/lsp/util.lua:2167: in function 'make_text_document_params'
  ...nvim/lazy/tailwind-tools.nvim/lua/tailwind-tools/lsp.lua:172: in function 'color_request'
  ...nvim/lazy/tailwind-tools.nvim/lua/tailwind-tools/lsp.lua:66: in function ''
  vim/_editor.lua: in function ''
  vim/_editor.lua: in function <vim/_editor.lua:0>

my config

To Reproduce Steps to reproduce the behavior:

  1. Open nvim-tree
  2. Create new file

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

luckasRanarison commented 1 month ago

Do you mean creating file using a? I've tried using nvim-tree and it's working on my side with nvim v0.10.

Could you provide more context, does this happen when on the tree or the created file buffer, is the created file automatically opened after creation and attached to the server?

AlejandroSanchez90 commented 1 month ago

https://github.com/user-attachments/assets/2f0ae339-c4cb-4f6a-9869-3bddfa3a1302

this is by using a for create a new file