Comments (8)
Let's build for nvim 0.10 and see if it works for 0.9
We can decide whether to build a 0.9 specific implementation based on the above.
from nvim-tree.lua.
I agree. Since neovim 0.10 is the upcoming release, initial focus should be on it.
from nvim-tree.lua.
I don't think I'm fully understanding. What is update_in_insert
? It doesn't seem to be an nvim or lsp setting.
It appears to be a lualine specific setting: https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#diagnostics-component-options
Is it known by another name?
from nvim-tree.lua.
it's part of configuration options for vim.diagnostic.config()
, see :h vim.diagnostic.Opts
.
from nvim-tree.lua.
it's part of configuration options for
vim.diagnostic.config()
, see:h vim.diagnostic.Opts
.
Ah... new in 0.10.
This featurecan be added, although it will have to be behind a 0.10 feature flag.
I'm a little wary of 0.10; there have been a few breaking breaking changes recently.
from nvim-tree.lua.
First of all, thanks for the insights. It made me recheck the things and I was wrong. When it comes to lualine yes it indeed is a separate option. But when it comes to neovim an option does exist but I think lualine uses its own value for implementing it.
This is the option in neovim:
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
update_in_insert = false,
}
)
And the thing is, I use neovim 0.9.5 and it works as intended when it comes to neovim buffers. See this video:
nvim-issue-1.mp4
At first I set the update_in_insert
to false
and see that neovim respects it and doesn't show the diagnostic virtual_text while in insert mode. Then when I set it to true
neovim respects that and shows diagnostic virtual_text even when in insert mode.
Similarly, when it comes to lualine as you have found out, it also have such an option.
What I am hoping is the addition of an option like the one below that kind of brings the feature to nvim-tree:
require("nvim-tree").setup({
diagnostics = {
update_in_insert = false, -- ability to set something like this
},
})
from nvim-tree.lua.
That's quite nice. We do seem to have two different mechanisms to achieve this: vim.diagnostic.config()
(0.10) and the above LSP setting.
Can we implement one mechanism to handle both?
from nvim-tree.lua.
I am not really well versed with the programming implications of adding this feature hence it would be better if you could choose one mechanism that you feel is the best choice to handle both.
from nvim-tree.lua.
Related Issues (20)
- Right aligned icons HOT 1
- web-devicons default not used HOT 4
- Can't create a file in neovim using nvim-tree.lua(fs_close bad argument #1) HOT 6
- [NvimTree] Could not start the fs_event watcher for path /xxxx/xxxx : ENOSPC HOT 8
- Is it not in the AUR?(Have been solved) HOT 2
- Opening a tree in a new tab messes up local statusline settings HOT 6
- Colors of NvimTree as floating window different as expected (configured) HOT 2
- Unable to open file in new tab HOT 2
- nvim-web-devicons user overrides are clobbered HOT 1
- enable deprecated warnings, minimum neovim version 0.9, harden support for greater versions HOT 3
- Allow nodes to expand until a certain condition is met.
- Diagnostics Disabled flag seems do not work
- `nvim-tree` allows the creation of files over `sshfs`, but they can't be accessed HOT 3
- `nvim-tree` allows the creation of files over `sshfs`, but they can't be accessed HOT 10
- Allow icons to work with any terminal font HOT 1
- Sibling navigation doesn't work with group empty HOT 1
- filesystem_watchers.ignore_dirs and git.disable_for_dirs functions
- The path to open files is always displayed as an absolute path HOT 5
- `nvim-tree` does not allow renaming the file even with changed letter capitalization HOT 6
- The path is not displayed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-tree.lua.