-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable LSP in iced_stdout - QUESTION #382
Comments
@sittim Thanks for your reporting! Are you sure that you are using vim-iced v3.7.0 or earlier? |
@liquidz, here is my version: It gets upgraded through |
@sittim Thanks! |
As far as LSP, I keep it fresh, almost daily. |
@sittim Thanks for your confirmation! But may this hook help you? call iced#hook#add('connected', {
\ 'type': 'function',
\ 'exec': {_ -> lsp#disable_diagnostics_for_buffer(bufnr('iced_stdout'))},
\ }) |
I get this when I use these lines:
|
What lines? The following lines?
The above code don't affect to REPL, so the exception should be another problem. |
I have the same problem getting rid of
This is using NVIM v0.8.0 and its built-in lsp. So it doesn't seem to have that function, so I've been trying to rewrite it
but unfortunately I can't figure out how to get the buffer number by using a name, like you can with vimscript's |
I got the genius (ugly) idea of using interop, so I got something that works:
|
@heralden It seems supporting |
Lua function seems to be callable from vimscript in neovim. lua <<EOC
vim.fn['iced#hook#add']('connected', {
type = "function",
exec = function()
vim.diagnostic.disable(vim.fn.bufnr("iced_stdout"))
end
})
EOC |
Thanks! That's much cleaner 🙂 |
My iced_stdout window gets lots of errors any way to disable clojure-ls/vim-lsp in the iced_stdout window?
The text was updated successfully, but these errors were encountered: