looking-glass module does not allow LSPs and other language-specific tools to kick in
as it states in the wiki
#1123
Labels
bug
Issues related to bugs. Please attach a severity, a priority and category with this label.
Prerequisites
Neovim Version
0.9.4
Neorg setup
Actually there is nothing to do with the opts.
Actual behavior
LSPs and other language-specific tools dose not kick in so we have no lsp attached
Expected behavior
LSPs and other language-specific tools dose kick in so we have lsp attached and get correct completions
Steps to reproduce
code block
in.norg
file:Neorg keybind all core.looking-glass.magnify-code-block
Potentially conflicting plugins
No response
Other information
No response
Help
Yes, but I don't know how to start. I would need guidance (check question below)
Implementation help
It seems that the following code caused the issue and after I fixed it locally, it works as the expected behavior showed above.
context: we create a
scratch
bufferfixture:
local buf = vim.api.nvim_create_buf(false, true)
=>local buf = vim.api.nvim_create_buf(false, false)
extra: passthrough as a parameter of the function is a good idea
context: buf name was started with
neorg://
which does not exist at allfixture:
vim.api.nvim_buf_set_name(buf, "neorg://" .. name)
=>vim.api.nvim_buf_set_name(buf, name)
extra: passthrough as a parameter of the function is a good idea
context: duplicate
vim.api.nvim_win_set_buf
with L183fixture:
vim.api.nvim_win_set_buf(0, buf)
=>-- vim.api.nvim_win_set_buf(0, buf)
extra: I do not know whether it is a mistake or a bug fix for other issue
I can submit a PR after the following questions are answered:
vim.api.nvim_win_set_buf
?The text was updated successfully, but these errors were encountered: