lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
687 stars 27 forks source link

Lsp Servers Cannot find root dir on file-like gina buffers #294

Closed thecontinium closed 2 years ago

thecontinium commented 2 years ago

Hi

I am using gina to compare git differences along with LSP servers and nvim-lspconfig

Gina assigns names in the format gina://... with a buftype of nowrite to the git version of the file.

Lspconfig attempts to find the root project directory for these types of buffers. It tries all buffers except those that are of buftype nofile resulting in many notifications on the git version of the buffer that the root dir cannot be found.

I am not sure where this should be fixed but would welcome your thoughts on the best solution ?

Cheers

lambdalisue commented 2 years ago

That's nvim-lspconfig issue while gina buffer is not file buffer and that is determinable from it's buffer name.

thecontinium commented 2 years ago

As your classification highlights it is a file. So it warrants coverage by Lsp but with the root directory of the respective file on disk rather than attempting to find the root of a file from git. Thanks for your input I will close this.