Comments (1)
IMO the current behavior of enable
is good enough, even if we provide something like vim.g.inlay_hint = true
and vim.b.inlay_hint = false
, we should keep the current behavior.
A summary of the current pattern:
Keep buffer-local states only when it is different from the global one. This means that after it is equalized, its state will change as the global state changes.
As I said in #28543 (comment):
The logic behind this design is that if it can be globally
enable
or locallyenable
, when the user selects localenable
, we think the user's purpose is to distinguish the local state from the global state. I think this design is good for interaction,
It is the best choice that can be made under the following constraints:
...there is no way to remove "local variables" by using
enable
. Once the user manages a buffer'sbufstate
, it means that they must manage it all the time, there's no way to make them follow theglobalstate
.
And if we add more filters, like what #28521 tries to do, it should be hard to manage by global or buffer variables.
from neovim.
Related Issues (20)
- Commenting is too restrictive for toggling uncomment HOT 16
- autocmd only works once after upgrade to 0.10.0 HOT 2
- feedkeys with esc no behaving as expected in cmdline mode HOT 1
- Disable built-in formatting for zig HOT 11
- Let `mksession` preserve and/or `nvim -S` respect buffer ordering
- asynchronous :make, :grep, etc HOT 1
- When closing neovim "Pending mode change to already current mode (0) requested. Either pending mode expired or there is an application bug."
- systemlist generates errors when buffer number is passed and command expects stdin HOT 4
- Way to test neovim plugin on github CI / avoid hit enter to continue after message HOT 2
- Unable to build from latest git HOT 2
- neovim hang at rpcrequest when use vim.iter in decoration_provider on_win
- [refactor] create types and format modules HOT 1
- Syntax highlighting can't be disabled HOT 4
- Conflict In Ada When Leader Mapped to Space HOT 1
- @lsp.type.macro links to @constant.macro, but @constant.macro is not defined HOT 2
- Undo sometimes triggers assert when restoring extmarks HOT 8
- [d-default behaves differently from explicit mapping HOT 1
- cmdline lua completion for `vim.fn.*` has missing items HOT 1
- Default :terminal palette colors could have better contrast in GUIs HOT 7
- `'statusline'` `%{…}` expressions will sometimes lose a leading space
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 neovim.