Closed perrin4869 closed 1 year ago
I've added disable_buf
and enable_buf
(see :h hlargs-disable-buf
)
Let me know if you find any issues
Also, may I add your code snippets for LSP integration to the docs?
thank you so much!! updated my config here https://github.com/perrin4869/dotfiles/commit/8e460fcffffe35fb4ff56cfb45fcdcbab21a7566 😄 Please feel free to use the code-snippets!
Well, this is not a bug, but more of a feature request. I'd like to setup neovim to use lsp semantic tokens by default, fallback to
hlargs
when unavailable. Using thedisable
option is not a complete solution, because if thelsp
client is not yet attached to the buffer being disabled, we cannot check the buffer's capabilities forsemanticTokenProvider
when first opening that buffer up until the point when the language server finishes initializing.A more reliable solution would be something like:
However, without the ability to specify which buffer to disable,
require("hlargs").disable()
will disablehlargs
across the board. Would it be possible to add an option to thedisable
function so it can be called asrequire("hlargs").disable { bufnr = bufnr }
?