Skip to content

Commit daa6339

Browse files
Merge pull request #87 from NuschtOS/neovim-0.11
lsp: remove sinature help; now native with C-S
2 parents 1d71af3 + 0c68091 commit daa6339

6 files changed

Lines changed: 30 additions & 45 deletions

File tree

.github/workflows/flake-build.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
target: [ "24.11", "unstable" ]
20+
target: [ "25.05", "unstable" ]
2121

2222
steps:
2323
- uses: actions/checkout@v4
@@ -30,9 +30,8 @@ jobs:
3030
if: matrix.target != 'unstable'
3131
run: |
3232
nix build -L \
33-
--override-input nixpkgs github:NixOS/nixpkgs/nixos-24.11 \
34-
--override-input home-manager github:nix-community/home-manager/release-24.11 \
35-
--override-input nixvim github:nix-community/nixvim/nixos-24.11
33+
--override-input nixpkgs github:NixOS/nixpkgs/nixos-25.05 \
34+
--override-input nixvim github:nix-community/nixvim/nixos-25.05
3635
3736
- name: build unstable
3837
if: matrix.target == 'unstable'

flake.lock

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

flake.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
66

7-
flake-utils.url = "github:numtide/flake-utils";
7+
flake-utils = {
8+
url = "github:numtide/flake-utils";
9+
inputs.systems.follows = "nixvim/systems";
10+
};
811

912
nixvim = {
1013
url = "github:nix-community/nixvim";
1114
inputs = {
1215
nixpkgs.follows = "nixpkgs";
13-
1416
# https://github.com/nix-community/nixvim/blob/main/flake.nix#L12-L34
1517
nuschtosSearch.follows = "";
1618
};

modules/default.nix

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{ lib, options, pkgs, ... }:
22

3-
let
4-
colorizer = if lib.versionAtLeast lib.version "25.05pre" then "colorizer" else "nvim-colorizer";
5-
in
63
{
74
imports = [
85
./cmp.nix
@@ -71,12 +68,12 @@ in
7168
secure = true;
7269
};
7370

74-
plugins = let
75-
crates = if options.plugins?crates then "crates" else "crates-nvim";
76-
in {
71+
diagnostic.settings.virtual_text = true;
72+
73+
plugins = {
7774
bufferline.enable = true;
7875
commentary.enable = true;
79-
"${crates}".enable = true;
76+
crates.enable = true;
8077
fidget.enable = true;
8178
gitsigns.enable = true;
8279
indent-blankline.enable = true;
@@ -90,17 +87,17 @@ in
9087
};
9188
# https://github.com/nvim-lualine/lualine.nvim?tab=readme-ov-file#filename-component-options
9289
sections = {
93-
lualine_b = [ {
90+
lualine_b = [{
9491
sources = [ "nvim_diagnostic" "nvim_lsp" ];
95-
} ];
96-
lualine_c = [ {
92+
}];
93+
lualine_c = [{
9794
path = 1;
98-
} ];
95+
}];
9996
};
10097
};
10198
};
10299
nvim-autopairs.enable = true; # brackets, html, ...
103-
${colorizer}.enable = true;
100+
colorizer.enable = true;
104101
rainbow-delimiters.enable = true;
105102
ts-context-commentstring.enable = true; # set comment string dynamically
106103
vim-matchup.enable = true; # extends % key with comments

modules/lsp.nix

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,6 @@ in
137137
action = "implementation";
138138
desc = "Goto Implementation";
139139
};
140-
"<leader>k" = {
141-
action = "hover";
142-
desc = "Hover";
143-
};
144-
"<leader>ls" = {
145-
action = "signature_help";
146-
desc = "Signature Help";
147-
};
148140
};
149141
};
150142
};

modules/treesitter.nix

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
{ lib, options, ... }:
22

3-
let
4-
# TODO: drop with 25.05
5-
hasDependencies = lib.versionAtLeast lib.version "25.05";
6-
in
7-
lib.optionalAttrs hasDependencies {
3+
{
84
dependencies = {
95
gcc.enable = false;
106
nodejs.enable = false;
117
tree-sitter.enable = false;
128
};
13-
} // {
9+
1410
plugins.treesitter = {
1511
enable = true;
1612
# exclude some big (above 10 MB) and rarely used languages
@@ -22,11 +18,6 @@ lib.optionalAttrs hasDependencies {
2218
) options.plugins.treesitter.grammarPackages.default;
2319

2420
settings.highlight.enable = true;
25-
} // lib.optionalAttrs (!hasDependencies) {
26-
# we are not installing packages by hand
27-
gccPackage = null;
28-
nodejsPackage = null;
29-
treesitterPackage = null;
3021
};
3122

3223
# Enable automatically closing and renaming HTML tags

0 commit comments

Comments
 (0)