oxalica
985293ed94
Update flake
2023-07-09 07:40:15 +08:00
oxalica
495c599928
Disable Nix memory limit on macOS since unsupported
...
Ref: https://bugs.chromium.org/p/chromium/issues/detail?id=853873#c2
2023-07-09 05:16:02 +08:00
oxalica
1bd6791944
Manually execute DFA lexers for performance
...
This reduces `lex` time by ~50%, and `parse_file` time by ~25%.
See: https://github.com/rust-lang/regex/issues/1029
2023-07-09 03:49:35 +08:00
oxalica
e4f5e55eb9
Add a benchmark for parsing the whole nixpkgs
2023-07-09 02:41:27 +08:00
oxalica
a08bebf874
Impl memory limit for flake evaluation
2023-07-09 02:18:25 +08:00
oxalica
ba49fb311b
Bump rustix to 0.38
2023-07-08 22:11:17 +08:00
oxalica
3a30b89588
Bump regex-automata to 0.3
2023-07-08 22:01:22 +08:00
oxalica
ecd6e0912e
Add benchmarks for the parser
2023-07-08 00:41:08 +08:00
oxalica
3e6a0fe18f
Disable outdated check on push
2023-07-07 01:42:29 +08:00
oxalica
7fa012bb84
Bump coc.nvim dependencies
2023-07-07 01:42:22 +08:00
oxalica
f375f3f32b
Include DEBUG logging in release builds
2023-07-07 01:40:52 +08:00
Michał
a5422a2168
Fix build on nix 2.17 ( #94 )
...
* fix: fix build on nix 2.17
* chore: mention version number
Co-authored-by: oxalica <oxalicc@pm.me>
2023-07-07 01:38:19 +08:00
sg-qwt
84c413e9d6
Rewording warning message ( #96 )
...
It took me a while to find out what auto-fetch actually means from my lsp client log. There's no such thing as auto-fetch, it's autoArhive.
Somebody else entered this as well. https://www.reddit.com/r/neovim/comments/14pk1u5/lsp_tells_me_to_enable_autofetch_in/
2023-07-07 01:33:09 +08:00
oxalica
f6bd5fea84
Downgrade meter events to DEBUG
2023-06-26 18:40:32 +08:00
oxalica
6d3735e03e
Set LSP event spans as INFO in nil
crate
...
With this, we can filter it by `NIL_LOG=nil=info` instead of
`async_lsp::tracing=debug`.
2023-06-26 18:29:58 +08:00
oxalica
bc24a2567b
Delay path link resolutions
...
This reduces the time of `textDocument/documentLink` from ~100ms down
to ~20ms. Editors doing frequent query of links like coc.nvim can
benefit a lot from it.
2023-06-26 17:56:47 +08:00
oxalica
9bcb01acc2
Filter far spans from highlight_related
results
2023-06-26 16:45:22 +08:00
oxalica
dd5e3e6a95
Pass initializationOptions
in coc-nil
2023-06-26 16:06:53 +08:00
oxalica
abaab31f7b
Dedup config updating code and raise log level
2023-06-26 16:06:51 +08:00
oxalica
518b91a7c2
Refactor and simplify config updating using macros
2023-06-26 16:06:51 +08:00
oxalica
e727e55565
Bump indexmap to 2
2023-06-24 11:04:59 +08:00
oxalica
9a3f88c471
Reduce check frequency for outdated dependencies
2023-06-24 11:00:23 +08:00
oxalica
c7453bb3ea
Update dependencies
2023-06-23 14:17:13 +08:00
oxalica
c91a9a9aa2
Update cachix/install-nix-action to fix CI
...
Ref: https://github.com/cachix/install-nix-action/issues/183
2023-06-21 10:37:21 +08:00
maurobalbi
dbf26d6bc2
Fix flake reloading condition on file changes ( #92 )
...
Typo, condition always evaluates to true
2023-06-16 04:12:57 +08:00
oxalica
1edf2ad0ae
Replace unmaintained atty
with is-terminal
2023-06-15 15:19:43 +08:00
Manuel
119e56eb4d
Update diagnostics CLI to return non-zero exit code only on errors ( #90 )
...
Co-authored-by: Manu [tennox] <tennox+git@txlab.io>
2023-06-12 06:31:37 +08:00
oxalica
dcd38b96c9
Use semantic token type boolean
for true
/false
...
This distinguishes boolean literals from other builtin constants like
`null`. The type name is copied from rust-analyzer.
<526507fe22/crates/rust-analyzer/src/semantic_tokens.rs (L67)
>
Closes #52
2023-05-31 19:22:45 +08:00
oxalica
ac641a993a
Trigger show-references on variable usages
...
Closes #86
2023-05-31 19:08:18 +08:00
oxalica
7414d583c5
Only check the direct parent node in references query
...
We should not query `with`'s references just because we are inside a big
`with` expression. It should only trigger exactly on the `with` token.
2023-05-31 18:58:54 +08:00
oxalica
375d3d6a7f
Impl experimental SSR in CLI
2023-05-31 18:42:42 +08:00
oxalica
2f9e94fee0
Update flake and dependencies
2023-05-31 18:36:51 +08:00
oxalica
0158d58d47
Send workspace/configuration only if the client supports it ( #85 )
2023-05-30 17:41:49 +08:00
oxalica
ca462183c5
Load configuration from initializationOptions
( #84 )
2023-05-28 14:22:47 +08:00
Yuriy Taraday
30b994ad85
Check if workspace/configuration is supported
...
Don't send it to clients (like LanguageClient-neovim) that don't
support it to avoid error noise.
2023-05-25 13:57:10 +02:00
Yuriy Taraday
c4eee44017
Load configuration during initialize handling
...
Allows to configure the server when client doesn't support
`workspace/configuration` method, for example, LanguageClient-neovim.
2023-05-25 13:30:25 +02:00
oxalica
17ed1578f3
Mention the neovim semantic highlighting performance issue in docs
2023-05-20 06:21:10 +08:00
oxalica
51447db547
Trace response sizes and time costs
2023-05-20 05:48:57 +08:00
oxalica
18de045d77
Disable autoEvalInputs by default
...
This is too costly for huge flakes with lots of packages or leavy tests,
and also have issues on locked transitive inputs (#79 ).
2023-05-10 01:38:03 +08:00
oxalica
67bfe95a3c
Don't look for NixOS options when module-list.nix or lib doesn't exist ( #80 )
2023-05-07 02:46:09 +08:00
oxalica
21d0870aab
Add configurations to disable expensive evaluations
2023-05-07 02:40:55 +08:00
oxalica
0b36ff7181
Add configuration to skip flake archive confirmation
2023-05-07 02:18:18 +08:00
figsoda
c7ce789aa6
Don't look for NixOS options when module-list.nix or lib doesn't exist
2023-05-05 17:51:56 -04:00
oxalica
c2f303fd8b
Add tests for option evaluation of nixpkgs 22.11
2023-05-05 10:46:02 +08:00
oxalica
2c65120ddf
Evaluate NixOS options for 22.11
2023-05-05 10:45:47 +08:00
oxalica
715b0a5244
Guard NixOS option evaluation with release version
...
This is rough but can skip some common stable nixpkgs inputs.
Fixes #78
2023-05-05 10:11:45 +08:00
oxalica
e74b767a43
Update flake
2023-05-02 01:39:28 +08:00
oxalica
c47ad0d6b2
Update dependencies
2023-05-02 01:26:16 +08:00
oxalica
4dcb738942
Report progress for NixOS options loading
2023-04-29 14:15:03 +08:00
oxalica
6321ca0a25
Synchronize Vfs and filesystems using watchers
2023-04-29 14:00:34 +08:00