1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-25 07:45:26 +03:00
Commit Graph

491 Commits

Author SHA1 Message Date
oxalica
ff231923ed Warn instead of fail on dirty worktree
Fixes #119
2024-01-07 14:49:20 +08:00
oxalica
e72b98fed5 Update flake and nightly rustc for rustfmt and fuzz 2024-01-07 14:42:00 +08:00
oxalica
fdccb900c9 Update dependencies and fix warnings 2024-01-07 14:30:25 +08:00
oxalica
0031eb4343 Record AstPtr of the first Expr for merged attrsets
Otherwise, it causes a panic of missing node when reporting diagnostics
on the merged attrset.

Fixes #114
2023-11-29 10:36:12 +08:00
oxalica
1348b53085 Ignore non-flake file inputs
It's impossible to calculate their store paths currently.

Fixes #113
2023-11-27 12:10:31 +08:00
oxalica
440a3857cd Update to itertools 0.12.0 and fix clippy 2023-11-27 10:30:47 +08:00
oxalica
5607d42901 Update dependencies 2023-11-08 14:06:48 +08:00
oxalica
94ecd9c0aa Sync MSRV in README
Fixes #112
2023-11-08 14:06:48 +08:00
oxalica
bd93024db6 Refactor and improve completion from nowhere or manual trigger
- Regroup completion cases under `Context` in a OOP-like manner to
  simplify parameter passing.

- Handle more cases for complete from nowhere (between expressions or
  bindings). This helps 24x7 completion and manually triggered
  completion (Ctrl-Space) in various places to list all options without
  any identifier as filter.
2023-10-19 18:16:55 +08:00
oxalica
26c5d73015 Fine tuning token selection at given position 2023-10-19 11:53:45 +08:00
oxalica
1b6b4534b3 Remove trailing spaces in tests 2023-10-19 11:07:00 +08:00
oxalica
b4a01cee32 Revert test in pre-commit and fix CI
Partially reverts 51e6714.

1. Testing in pre-commit is too long and suffers from different
   environment setup.
2. `--include-ignored` breaks criterion CLI currently.
2023-10-17 18:43:03 +08:00
oxalica
73eeaa64d8 Update regex-automata and other deps 2023-10-16 21:47:53 +08:00
oxalica
51e67142ad Fix benchmark and enforce test success in CI 2023-10-16 21:47:53 +08:00
oxalica
ee215a18ab Update flake 2023-10-09 16:03:27 +08:00
oxalica
ee023be3dd Update dependencies 2023-10-09 15:58:28 +08:00
Jacob Birkett
28b0432cf8
flake: add meta.mainProgram (#110) 2023-10-09 09:27:59 +08:00
oxalica
61caccdde0 Ignore identifiers starting with _ from liveness check
Partially fixes #55
Closes #109
2023-10-09 09:22:10 +08:00
oxalica
dbf49b3aab Generate symbol tree syntactically without invalid nesting
Fixes #107
2023-10-09 09:00:19 +08:00
oxalica
2091ef0e1d Fix clippy warnings 2023-10-09 08:48:57 +08:00
Nilstrieb
510bc6e9b4
Fail textDocument/formatting when no formatter is set (#108)
Currently, nil silently fails when no formatter is set. This caused me a
lot of confusion as to why nothing was formatting when I accidentally
misconfigured the formatter.

This makes it so that we return an error instead, alerting the user that
something is wrong.

This could be annoying to someone who hasn't configured a formatter on
purpose but still causes formatting events, either by format-on-save or
muscle memory. I think this is fine, and they should turn off
format-on-save or just get a formatter instead. Alternatively, someone
could set `cat` as their formatter.
2023-09-24 00:03:37 +08:00
oxalica
4775e34c30 Fix CR LF handling 2023-09-08 20:55:26 +08:00
oxalica
bd7e2e2de7 Fix clippy warnings 2023-09-08 20:54:38 +08:00
oxalica
4bdcfcfe38
Fix option completion of types.attrsOf (types.submodule {}) (#102) 2023-09-03 14:57:35 +08:00
Maximilian Bosch
e99c89177a
nix-interop: fix option completion of types.attrsOf (types.submodule {})
a.k.a. fix a small typo.

Because the type-name `attrsOf` was never matched, e.g.
`systemd.services` always had type `any`.
2023-09-02 12:32:16 +02:00
oxalica
97abe7d3d4 Update dependencies 2023-08-07 09:45:39 +08:00
oxalica
6fc4e3b645 Update async-lsp to 0.0.5 and double the concurrency limit 2023-08-07 09:45:10 +08:00
oxalica
5b55d6fd79 Avoid breaking words in tests 2023-08-06 22:31:06 +08:00
oxalica
565472e8ae Mass fix typos with typos 2023-08-06 22:31:06 +08:00
oxalica
175c791e62
Fix offset conversion for end of file (#100) 2023-08-06 22:08:50 +08:00
Mauro Balbi
0e935731f1 Fix offset conversion for end of file 2023-08-06 09:08:53 +02:00
oxalica
00eae58f25 Fix lexing of block comments 2023-08-04 17:29:44 +08:00
oxalica
6f20ed4115
Fix tests for nix 2.17 (#99) 2023-08-03 07:52:24 +08:00
Jordan Isaacs
cf44cd1c69
Use devshell full in CI 2023-07-28 14:51:06 -07:00
Jordan Isaacs
a2668f5680
Fix tests for nix 2.17
* Also updates nixpkgs to utilize 2.17 for tests
2023-07-27 18:54:58 -07:00
oxalica
59bcad0b13 Fix underspecified features of rustix 2023-07-19 17:38:23 +08:00
oxalica
76dee49cca Fix clippy warnings 2023-07-19 17:13:05 +08:00
oxalica
f2d4f15e30 Replace is-terminal with std's and bump MSRV to 1.70 2023-07-19 17:12:29 +08:00
oxalica
0c4934ad67 Split out a devenv without custom rustc 2023-07-19 17:09:07 +08:00
oxalica
e2fe1b0beb Fix typo and add tests for nixos-23.05 2023-07-14 17:31:34 +08:00
oxalica
a7ab280e86 Fix missing features 2023-07-12 08:36:45 +08:00
oxalica
3b1d36a5ba Add tests for the stability of Module 2023-07-12 08:18:52 +08:00
oxalica
9512111505 Fix diagnostics ordering in liveness analysis 2023-07-12 08:18:52 +08:00
oxalica
1abcaf1eac Batch calculate diagnostics and skip unchanged ones
Also fixes #89 which is a lost of update event.
2023-07-12 07:43:00 +08:00
oxalica
5751bfe63a Enable LTO for release builds 2023-07-10 11:31:49 +08:00
oxalica
40be56eddf Use nixUnstable in dependency for latest docs 2023-07-10 11:27:39 +08:00
oxalica
52508149f9 Fix missed docs of impure constants and flakes fns 2023-07-10 11:25:40 +08:00
oxalica
ee2ff825c5 Import docs of builtin constants for Nix >= 2.17
Follow up of #94.
2023-07-10 11:24:47 +08:00
oxalica
fb8a8cb077 Add rust-src in dev env for rust-analyzer 2023-07-10 05:44:27 +08:00
oxalica
05b7d9e936 Update rustfmt and format let-else 2023-07-09 07:47:27 +08:00