24.05: Fixed warnings

This commit is contained in:
Geoffrey Frogeye 2024-06-01 21:32:11 +02:00
parent 71385d9ba9
commit 3479927d32
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
9 changed files with 52 additions and 47 deletions

View file

@ -19,7 +19,7 @@ in
}; };
zsh = { zsh = {
enable = true; enable = true;
enableAutosuggestions = true; autosuggestion.enable = true;
enableCompletion = true; enableCompletion = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
historySubstringSearch.enable = true; historySubstringSearch.enable = true;

View file

@ -32,7 +32,7 @@ in
vim-shot-f # Highlight relevant characters for f/F/t/T modes vim-shot-f # Highlight relevant characters for f/F/t/T modes
quick-scope # Highlight relevant characters for f/F modes one per word but always quick-scope # Highlight relevant characters for f/F modes one per word but always
]; ];
options = { opts = {
# From https://www.hillelwayne.com/post/intermediate-vim/ # From https://www.hillelwayne.com/post/intermediate-vim/
scrolloff = 10; scrolloff = 10;
lazyredraw = true; # Do not redraw screen in the middle of a macro. Makes them complete faster. lazyredraw = true; # Do not redraw screen in the middle of a macro. Makes them complete faster.

View file

@ -34,7 +34,7 @@
] ++ (map ] ++ (map
(n: { key = "<C-${builtins.toString n}>"; action = "<Cmd>BufferGoto ${builtins.toString n}<CR>"; inherit options; }) (n: { key = "<C-${builtins.toString n}>"; action = "<Cmd>BufferGoto ${builtins.toString n}<CR>"; inherit options; })
(lib.lists.range 1 9)); (lib.lists.range 1 9));
options = { opts = {
showmode = false; showmode = false;
number = true; number = true;
relativenumber = true; relativenumber = true;
@ -151,7 +151,7 @@
# Show context on top if scrolled out # Show context on top if scrolled out
treesitter-context = { treesitter-context = {
enable = true; enable = true;
maxLines = 5; settings.max_lines = 5;
}; };
}; };
}; };

View file

@ -13,7 +13,7 @@
}; };
programs.nixvim = { programs.nixvim = {
colorschemes.base16.setUpBar = false; # We want the custom theme for lualine, probably colorschemes.base16.setUpBar = false; # We want the custom theme for lualine, probably
options = { opts = {
ignorecase = true; ignorecase = true;
smartcase = true; smartcase = true;
gdefault = true; gdefault = true;
@ -52,6 +52,7 @@
gS = "search_history"; gS = "search_history";
gC = "commands"; gC = "commands";
}; };
settings = {
defaults = { defaults = {
vimgrep_arguments = [ vimgrep_arguments = [
"${pkgs.ripgrep}/bin/rg" "${pkgs.ripgrep}/bin/rg"
@ -63,12 +64,15 @@
"--smart-case" "--smart-case"
]; ];
}; };
};
extensions.fzf-native = { extensions.fzf-native = {
enable = true; enable = true;
caseMode = "smart_case"; settings = {
case_mode = "smart_case";
fuzzy = true; fuzzy = true;
overrideFileSorter = true; override_file_sorter = true;
overrideGenericSorter = true; override_generic_sorter = true;
};
}; };
}; };
# TODO Go to any symbol in the current working directory, for when LSP doesn't support it. # TODO Go to any symbol in the current working directory, for when LSP doesn't support it.

View file

@ -15,8 +15,7 @@
{ {
mode = "n"; mode = "n";
key = "<space>wl"; key = "<space>wl";
lua = true; action.__raw = ''
action = ''
function() function()
print(vim.inspect(vim.lsp.buf.list_workspace_folders())) print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end end
@ -26,8 +25,7 @@
{ {
mode = "n"; mode = "n";
key = "<space>f"; key = "<space>f";
lua = true; action.__raw = ''
action = ''
function() function()
vim.lsp.buf.format { async = true } vim.lsp.buf.format { async = true }
end end

View file

@ -3,12 +3,13 @@
config = lib.mkIf config.frogeye.desktop.xorg { config = lib.mkIf config.frogeye.desktop.xorg {
services = { services = {
blueman.enable = true; blueman.enable = true;
displayManager.defaultSession = "none+i3";
xserver = { xserver = {
enable = true; enable = true;
windowManager.i3.enable = true; windowManager.i3.enable = true;
displayManager.defaultSession = "none+i3";
# Keyboard layout # Keyboard layout
xkb = {
extraLayouts.qwerty-fr = { extraLayouts.qwerty-fr = {
description = "QWERTY-fr"; description = "QWERTY-fr";
languages = [ "fr" ]; languages = [ "fr" ];
@ -31,6 +32,7 @@
layout = "qwerty-fr"; layout = "qwerty-fr";
}; };
}; };
};
# Enable sound & bluetooth # Enable sound & bluetooth
sound.enable = true; sound.enable = true;

View file

@ -41,7 +41,7 @@
programs.dconf.enable = true; programs.dconf.enable = true;
# Because everything is encrypted and I'm the only user, this is fine. # Because everything is encrypted and I'm the only user, this is fine.
services.xserver.displayManager.autoLogin.user = "geoffrey"; services.displayManager.autoLogin.user = "geoffrey";
}; };
imports = [ imports = [
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View file

@ -3,7 +3,7 @@
config = lib.mkIf config.services.printing.enable { config = lib.mkIf config.services.printing.enable {
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns4 = true;
openFirewall = true; openFirewall = true;
}; };
}; };

1
result-buildable Symbolic link
View file

@ -0,0 +1 @@
/nix/store/6887mr1xmcjgb99saw2ilv2mfjb8s2xq-nixos-system-curacao-24.05.20240531.805a384