1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-25 18:41:40 +03:00
Commit Graph

490 Commits

Author SHA1 Message Date
oxalica
932803b1de Fix panics when flake inputs contain self 2023-03-28 21:44:43 +08:00
oxalica
775ba9e6ac Parse flake outputs and add flake package meta 2023-03-27 00:10:43 +08:00
oxalica
73fda84341 Warn when running language server in terminal 2023-03-24 14:18:35 +08:00
oxalica
431d4540de Split out LSP initialization and return serverInfo 2023-03-24 13:51:26 +08:00
oxalica
6d01eb0ad1 Use poll(2) instead of select(2) 2023-03-24 13:37:09 +08:00
oxalica
48009b60fa Refactor LSP main loop 2023-03-24 13:16:45 +08:00
oxalica
e8e338d59b Check outdated packages 2023-03-18 15:40:32 +08:00
oxalica
e7045f1779 Set NIX_PATH in CI 2023-03-14 01:33:49 +08:00
oxalica
8463c135ad Translate and inject option types from Nix 2023-03-14 01:14:22 +08:00
oxalica
5b99f7aab5 Inject NixOS options 2023-03-13 22:46:45 +08:00
oxalica
9a043a5039 Add NixOS configuration type database input 2023-03-13 17:47:56 +08:00
oxalica
fe38ceaae6 Move string escaping to syntax::semantic and fix 2023-03-13 13:39:44 +08:00
oxalica
2552c08e39 Fix parsing of ' in indented strings 2023-03-11 23:13:46 +08:00
figsoda
e5fcdc168c
Add string rewriting assists (#69) 2023-03-11 23:05:19 +08:00
oxalica
457f6020be Impl subcommand parse 2023-03-11 22:51:43 +08:00
oxalica
7b0b15021e Extract error reporting from diagnostics subcommand 2023-03-11 22:50:28 +08:00
oxalica
09bcbd1ddd Ignore root node itself as flake inputs
This is not perfect but we don't support out-of-store flake inputs yet.

Fixes #71
2023-03-11 09:01:10 +08:00
oxalica
bbca41c5ee Apply clippy::uninlined_format_args 2023-03-10 16:10:09 +08:00
oxalica
4ec9367726 Apply clippy::manual-let-else 2023-03-10 16:10:09 +08:00
oxalica
4a9f128200 Apply clippy::{doc_markdown,missing-panics-doc} 2023-03-10 16:10:02 +08:00
oxalica
1eab5d2ea5 Fix dead links 2023-03-10 13:49:58 +08:00
oxalica
a84b006bb1 Update dependencies 2023-03-10 13:48:57 +08:00
figsoda
d101741884
Implement type inference for rest attributes (#68) 2023-03-09 06:17:13 +08:00
oxalica
b5797b481a Fix unexpected remove from local_file_set 2023-03-09 04:08:45 +08:00
Hexadecimal
9312828faa Rephrase README.md and configuration.md 2023-03-08 22:25:31 +08:00
figsoda
267e2b4d73 Briefly document _ attributes 2023-03-08 22:18:41 +08:00
figsoda
4e31fede0a Correct and extend types for nixosConfigurations 2023-03-08 22:18:41 +08:00
figsoda
59ffbac047 Consider system attributes when typing flake outputs 2023-03-08 22:18:41 +08:00
oxalica
68522526c9 Update cachix/install-nix-action in CI 2023-03-08 00:20:18 +08:00
oxalica
612bbe972a Tweak CI and fix MSRV test 2023-03-07 23:06:31 +08:00
oxalica
fc91c3f6d6 Rename confusing SyntaxKind::is_* 2023-03-07 03:30:52 +08:00
Moritz Böhme
bb9a748cce Add remove_empty_let_in assist 2023-03-05 06:19:17 +08:00
oxalica
0f918f956f Warn unused parameters in flake outputs lambda 2023-03-04 02:30:16 +08:00
oxalica
f40199bea2 Warn unused pat parameters for modules and packages 2023-03-04 02:25:42 +08:00
oxalica
dace5df783 Guess ModuleKind for packages and NixOS modules 2023-03-04 01:37:10 +08:00
oxalica
ba70fc01fd Split out ModuleKind guessing 2023-03-03 22:00:24 +08:00
oxalica
3487ed42be Update dependencies 2023-03-02 06:23:12 +08:00
Xavier Lambein
6723d2982d Fix broken link in docs/features.md 2023-02-27 02:28:31 +08:00
oxalica
4825639eba Fix default value in coc-nil 2023-02-26 08:52:46 +08:00
oxalica
62e7eac98e Fix CI again 2023-02-26 08:40:46 +08:00
oxalica
1d223b505d Fix CI 2023-02-26 08:28:32 +08:00
oxalica
85ebdb39bf Add editorconfig 2023-02-26 08:16:46 +08:00
oxalica
128a699e5f Init coc.nvim extension 2023-02-26 07:18:14 +08:00
oxalica
d4e6677846 Export file referrer query as experimental/parentModule
See: https://github.com/microsoft/language-server-protocol/issues/1002
2023-02-18 06:12:56 +08:00
oxalica
87d007b2ab Track referrers of modules 2023-02-17 21:21:51 +08:00
oxalica
944d5c3355 Remove nix from the default devShell 2023-02-14 23:54:14 +08:00
oxalica
ea8ee40bd1 Sweep unused dependencies 2023-02-14 23:54:14 +08:00
oxalica
d62d4a4dd4 Improve query cache efficiency 2023-02-14 23:54:14 +08:00
oxalica
4dd931f460 Enforce clippy::semicolon_if_nothing_returned 2023-02-14 23:54:14 +08:00
oxalica
f5f359d81c Store index of from-expression in InheritFrom
This could hopefully reduces deduplication cost when traversing `Expr`s.
2023-02-14 23:54:14 +08:00