Skip to content

Commit 3e58c76

Browse files
authored
Merge branch 'main' into ignore-spell-term
2 parents 2c677a8 + 14cf7fc commit 3e58c76

File tree

23 files changed

+419
-59
lines changed

23 files changed

+419
-59
lines changed

configuration.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ isMaximal: {
9292
ruby.enable = false;
9393
fsharp.enable = false;
9494
just.enable = false;
95+
make.enable = false;
9596
qml.enable = false;
9697
jinja.enable = false;
9798
tailwind.enable = false;
@@ -204,6 +205,7 @@ isMaximal: {
204205
smart-splits.enable = isMaximal;
205206
undotree.enable = isMaximal;
206207
nvim-biscuits.enable = isMaximal;
208+
grug-far-nvim.enable = isMaximal;
207209

208210
motion = {
209211
hop.enable = true;

docs/manual/release-notes/rl-0.9.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
treesitter grammars were changed to prefer `grammarPlugins` over
5757
`builtGrammars`.
5858

59+
[NotAShelf](https://github.com/notashelf):
60+
61+
- Lazyload noice.nvim and nvim-web-devicons on `DeferredUIEnter`
62+
5963
[jfeo](https://github.com/jfeo):
6064

6165
[ccc.nvim]: https://github.com/uga-rosa/ccc.nvim
@@ -172,6 +176,17 @@
172176
173177
- Added [`golangci-lint`](https://golangci-lint.run/) for more diagnostics.
174178
179+
- Added Makefile support via `languages.make`.
180+
181+
- Added Debugging support to `languages.php`.
182+
183+
- Added Formatting support to `languages.php` via
184+
[PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer).
185+
186+
- Didn't Add
187+
[`syntax-gaslighting`](https://github.com/NotAShelf/syntax-gaslighting.nvim),
188+
you're crazy.
189+
175190
[vagahbond](https://github.com/vagahbond): [codewindow.nvim]:
176191
https://github.com/gorbit99/codewindow.nvim
177192
@@ -182,4 +197,18 @@ https://github.com/gorbit99/codewindow.nvim
182197
183198
- Ignore terminals by default in spell-checking
184199
200+
[irobot](https://github.com/irobot):
201+
202+
- Fix non-functional `vim.keymaps.*.noremap`. Now, setting it to false is
203+
equivalent to `:lua vim.keymap.set(..., { remap = true })`
204+
205+
[kazimazi](https://github.com/kazimazi):
206+
207+
- Added [`grug-far.nvim`](https://github.com/MagicDuck/grug-far.nvim) the find
208+
and replace tool for neovim.
209+
210+
[Ladas552](https://github.com/Ladas552):
211+
212+
- Changed `withRuby` to not be enabled by default
213+
185214
<!-- vim: set textwidth=80: -->

flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake/pkgs/by-name/blink-cmp/package.nix

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
stdenv,
44
rustPlatform,
55
fetchFromGitHub,
6+
rust-jemalloc-sys,
67
writeShellScriptBin,
78
}:
89
rustPlatform.buildRustPackage (finalAttrs: {
910
pname = "blink-cmp";
10-
version = "1.8.0";
11+
version = "1.9.1";
1112

1213
src = fetchFromGitHub {
1314
owner = "Saghen";
1415
repo = "blink.cmp";
1516
tag = "v${finalAttrs.version}";
16-
hash = "sha256-JjlcPj7v9J+v1SDBYIub6jFEslLhZGHmsipV1atUAFo=";
17+
hash = "sha256-GgodXdWpQoF2z1g1/WvnSpfuhskw0aMcOoyZM5l66q8=";
1718
};
1819

1920
forceShare = [
@@ -31,6 +32,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
3132
mv "$out/lib" "$out/target/release"
3233
'';
3334

35+
# From the blink.cmp flake
36+
buildInputs = lib.optionals stdenv.hostPlatform.isAarch64 [rust-jemalloc-sys];
37+
38+
# NOTE: The only change in frizbee 0.7.0 was nixpkgs incompatible rust semantic changes
39+
# Patch just reverts https://github.com/saghen/blink.cmp/commit/cc824ec85b789a54d05241389993c6ab8c040810
40+
# Taken from Nixpkgs' blink.cmp derivation, available under the MIT license
41+
cargoPatches = [
42+
./patches/0001-pin-frizbee.patch
43+
];
44+
3445
cargoHash = "sha256-Qdt8O7IGj2HySb1jxsv3m33ZxJg96Ckw26oTEEyQjfs=";
3546

3647
nativeBuildInputs = [
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/Cargo.lock b/Cargo.lock
2+
index 35bb10e..71c79eb 100644
3+
--- a/Cargo.lock
4+
+++ b/Cargo.lock
5+
@@ -144,9 +144,9 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
6+
7+
[[package]]
8+
name = "frizbee"
9+
-version = "0.7.0"
10+
+version = "0.6.0"
11+
source = "registry+https://github.com/rust-lang/crates.io-index"
12+
-checksum = "4d024031f1a5bc5f19917baa0b618f1067610e35ba23e9f105653fcb27e74f5c"
13+
+checksum = "c3365720de81dac18e889afa72f5907aa061c975548da68e2400c056ebc94aec"
14+
dependencies = [
15+
"multiversion",
16+
"rayon",
17+
diff --git a/Cargo.toml b/Cargo.toml
18+
index 392d1bb..c776c7d 100644
19+
--- a/Cargo.toml
20+
+++ b/Cargo.toml
21+
@@ -9,7 +9,7 @@ crate-type = ["cdylib"]
22+
23+
[dependencies]
24+
regex = "1.11.2"
25+
-frizbee = "0.7.0"
26+
+frizbee = "0.6.0"
27+
mlua = { version = "0.11.3", features = ["module", "luajit"] }
28+
thiserror = "2.0.16"
29+
blake3 = "1.8.2"

flake/pkgs/by-name/prettier-plugin-astro/package.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
fetchFromGitHub,
44
nodejs,
55
pnpm_9,
6+
pnpmConfigHook,
7+
fetchPnpmDeps,
68
pins,
79
}: let
810
pin = pins.prettier-plugin-astro;
@@ -17,15 +19,18 @@ in
1719
sha256 = pin.hash;
1820
};
1921

20-
pnpmDeps = pnpm_9.fetchDeps {
22+
pnpmDeps = fetchPnpmDeps {
23+
pnpm = pnpm_9;
2124
inherit (finalAttrs) pname src;
2225
fetcherVersion = 2;
2326
hash = "sha256-K7pIWLkIIbUKDIcysfEtcf/eVMX9ZgyFHdqcuycHCNE=";
2427
};
2528

2629
nativeBuildInputs = [
2730
nodejs
28-
pnpm_9.configHook
31+
(pnpmConfigHook.overrideAttrs {
32+
propagatedBuildInputs = [pnpm_9];
33+
})
2934
];
3035

3136
buildPhase = ''

modules/plugins/languages/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ in {
5252
./yaml.nix
5353
./ruby.nix
5454
./just.nix
55+
./make.nix
5556
./xml.nix
5657

5758
# This is now a hard deprecation.

modules/plugins/languages/make.nix

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
config,
3+
lib,
4+
pkgs,
5+
...
6+
}: let
7+
inherit (builtins) attrNames;
8+
inherit (lib.options) mkEnableOption mkOption;
9+
inherit (lib.meta) getExe;
10+
inherit (lib.types) listOf enum;
11+
inherit (lib.modules) mkIf mkMerge;
12+
inherit (lib.nvim.types) mkGrammarOption diagnostics;
13+
inherit (lib.nvim.attrsets) mapListToAttrs;
14+
15+
cfg = config.vim.languages.make;
16+
17+
defaultFormat = ["bake"];
18+
formats = {
19+
bake = {
20+
command = "${pkgs.mbake}/bin/mbake";
21+
};
22+
};
23+
24+
defaultDiagnosticsProvider = ["checkmake"];
25+
diagnosticsProviders = {
26+
checkmake = {
27+
config = {
28+
cmd = getExe pkgs.checkmake;
29+
};
30+
};
31+
};
32+
in {
33+
options.vim.languages.make = {
34+
enable = mkEnableOption "Make support";
35+
36+
treesitter = {
37+
enable = mkEnableOption "Make treesitter" // {default = config.vim.languages.enableTreesitter;};
38+
package = mkGrammarOption pkgs "make";
39+
};
40+
41+
format = {
42+
enable = mkEnableOption "Make formatting" // {default = config.vim.languages.enableFormat;};
43+
type = mkOption {
44+
description = "make formatter to use";
45+
type = listOf (enum (attrNames formats));
46+
default = defaultFormat;
47+
};
48+
};
49+
50+
extraDiagnostics = {
51+
enable = mkEnableOption "extra Make diagnostics" // {default = config.vim.languages.enableExtraDiagnostics;};
52+
types = diagnostics {
53+
langDesc = "Make";
54+
inherit diagnosticsProviders;
55+
inherit defaultDiagnosticsProvider;
56+
};
57+
};
58+
};
59+
60+
config = mkIf cfg.enable (mkMerge [
61+
(mkIf cfg.treesitter.enable {
62+
vim.treesitter = {
63+
enable = true;
64+
grammars = [cfg.treesitter.package];
65+
};
66+
})
67+
68+
(mkIf cfg.format.enable {
69+
vim.formatter.conform-nvim = {
70+
enable = true;
71+
setupOpts = {
72+
formatters_by_ft.make = cfg.format.type;
73+
formatters =
74+
mapListToAttrs (name: {
75+
inherit name;
76+
value = formats.${name};
77+
})
78+
cfg.format.type;
79+
};
80+
};
81+
})
82+
83+
(mkIf cfg.extraDiagnostics.enable {
84+
vim.diagnostics.nvim-lint = {
85+
enable = true;
86+
linters_by_ft.make = cfg.extraDiagnostics.types;
87+
linters =
88+
mkMerge (map (name: {${name} = diagnosticsProviders.${name}.config;})
89+
cfg.extraDiagnostics.types);
90+
};
91+
})
92+
]);
93+
}

0 commit comments

Comments
 (0)