Happy GregorianCalendar new year!
Features
-
Add many code actions for refactoring or fix.
Thanks to figsoda@github for implementations.-
"Convert to
inherit" now supports multiple LHS or RHS.
{ a.b = b; }=>{ a = { inherit b; }; }
{ a = b.a; }=>{ inherit (b) a; } -
Add unresolved names to top-level lambda parameters.
{ foo }: foo + bar=>{ foo, bar }: foo + bar -
Remove empty
inherits.
{ inherit; }=>{ }
-
-
Names from
withnow have a special semantic token modifier
withAttribute. One can add styles like underlines to them to distinguish
them from other static bindings.
There are examplesdev/nix-ide-semantic-highlighting.patchfor VSCode and
dev/vim-coc.nixfor (Neo)Vim/coc.nvim.
Fixes
- Names of semantic highlighting are tweaked. Now we use
constantand
builtinfor builtin constants (true) and functions (map).
The standarddefaultLibrarygroup in themes usually represent names
from the "standard library", like rust-analyzer did, which is not the
same as "builtin" constants.