fix: fix all the missed errors
This commit is contained in:
1 parent
882d8a6695
commit
6b2bc536f7
19 files changed
+198
-205
No files matched your search
@@ -40,7 +40,16 @@
|
||||
{
|
||||
nixosConfigurations = import ./hosts { inherit self inputs; };
|
||||
|
||||
homeConfigurations = import ./standalone { inherit self inputs; };
|
||||
# i. e. homeConfigurations.leonhard@x86_64-linux etc.
|
||||
homeConfigurations = builtins.listToAttrs (
|
||||
map (system: {
|
||||
name = "leonhard@${system}";
|
||||
value = import ./standalone {
|
||||
pkgs = pkgsFor system;
|
||||
inherit self inputs;
|
||||
};
|
||||
}) (import systems)
|
||||
);
|
||||
|
||||
packages = forAllSystems (
|
||||
system:
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
@@ -8,6 +9,6 @@
|
||||
options.nix-leonhard.neovim.enable = lib.mkEnableOption "neovim";
|
||||
|
||||
config = lib.mkIf config.nix-leonhard.neovim.enable {
|
||||
home.packages = [ self.packages.nixvim ];
|
||||
home.packages = [ self.packages.${pkgs.system}.nixvim ];
|
||||
};
|
||||
}
|
||||
+5
-4
@@ -4,8 +4,9 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
nixvim = inputs.nixvim.lib.buildNixvimWith {
|
||||
inherit (pkgs) system;
|
||||
modules = [ ./nixvim ];
|
||||
};
|
||||
nixvim =
|
||||
(inputs.nixvim.lib.evalNixvim {
|
||||
inherit (pkgs) system;
|
||||
modules = [ ./nixvim ];
|
||||
}).config.build.package;
|
||||
}
|
||||
+5
-10
@@ -5,17 +5,12 @@
|
||||
./plugins
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
vimdiffAlias = true;
|
||||
defaultEditor = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
|
||||
colorschemes.tokyonight.enable = true;
|
||||
colorschemes.tokyonight.enable = true;
|
||||
|
||||
clipboard.providers.wl-copy.enable = true;
|
||||
clipboard.providers.wl-copy.enable = true;
|
||||
|
||||
globals.mapleader = " ";
|
||||
};
|
||||
globals.mapleader = " ";
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
programs.nixvim.keymaps = [
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<Esc>";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
programs.nixvim.opts = {
|
||||
opts = {
|
||||
number = true;
|
||||
relativenumber = true;
|
||||
showmode = false;
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
blink-indent.enable = true;
|
||||
blink-pairs.enable = true;
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
signature.enabled = true;
|
||||
keymap = {
|
||||
preset = "default";
|
||||
"<CR>" = [
|
||||
"accept"
|
||||
"fallback"
|
||||
];
|
||||
};
|
||||
plugins = {
|
||||
blink-indent.enable = true;
|
||||
blink-pairs.enable = true;
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
signature.enabled = true;
|
||||
keymap = {
|
||||
preset = "default";
|
||||
"<CR>" = [
|
||||
"accept"
|
||||
"fallback"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
+48
-50
@@ -1,53 +1,51 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.dap = {
|
||||
enable = true;
|
||||
luaConfig.content = ''
|
||||
local dap = require 'dap'
|
||||
local dapui = require 'dapui'
|
||||
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
|
||||
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
|
||||
dap.listeners.before.event_exited['dapui_config'] = dapui.close
|
||||
'';
|
||||
};
|
||||
plugins.dap-ui.enable = true;
|
||||
plugins.dap-python.enable = true;
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F5>";
|
||||
action = "<cmd>DapContinue<CR>";
|
||||
options.desc = "Debug: Start/Continue";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F1>";
|
||||
action = "<cmd>DapStepInto<CR>";
|
||||
options.desc = "Debug: Step Into";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F2>";
|
||||
action = "<cmd>DapStepOver<CR>";
|
||||
options.desc = "Debug: Step Over";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F3>";
|
||||
action = "<cmd>DapStepOut<CR>";
|
||||
options.desc = "Debug: Step Out";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>b";
|
||||
action = "<cmd>DapToggleBreakpoint<CR>";
|
||||
options.desc = "Debug: Toggle Breakpoint";
|
||||
options.silent = true;
|
||||
}
|
||||
];
|
||||
plugins.dap = {
|
||||
enable = true;
|
||||
luaConfig.content = ''
|
||||
local dap = require 'dap'
|
||||
local dapui = require 'dapui'
|
||||
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
|
||||
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
|
||||
dap.listeners.before.event_exited['dapui_config'] = dapui.close
|
||||
'';
|
||||
};
|
||||
plugins.dap-ui.enable = true;
|
||||
plugins.dap-python.enable = true;
|
||||
keymaps = [
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F5>";
|
||||
action = "<cmd>DapContinue<CR>";
|
||||
options.desc = "Debug: Start/Continue";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F1>";
|
||||
action = "<cmd>DapStepInto<CR>";
|
||||
options.desc = "Debug: Step Into";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F2>";
|
||||
action = "<cmd>DapStepOver<CR>";
|
||||
options.desc = "Debug: Step Over";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<F3>";
|
||||
action = "<cmd>DapStepOut<CR>";
|
||||
options.desc = "Debug: Step Out";
|
||||
options.silent = true;
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "<leader>b";
|
||||
action = "<cmd>DapToggleBreakpoint<CR>";
|
||||
options.desc = "Debug: Toggle Breakpoint";
|
||||
options.silent = true;
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -11,9 +11,7 @@
|
||||
./which-key.nix
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-sleuth
|
||||
];
|
||||
};
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
vim-sleuth
|
||||
];
|
||||
}
|
||||
+35
-37
@@ -1,45 +1,43 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
opts.formatexpr = "v:lua.require'conform'.formatexpr()";
|
||||
opts.formatexpr = "v:lua.require'conform'.formatexpr()";
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>f";
|
||||
action.__raw = ''
|
||||
function() require 'conform'.format { async = true } end
|
||||
'';
|
||||
options.desc = "Format Buffer";
|
||||
}
|
||||
];
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>f";
|
||||
action.__raw = ''
|
||||
function() require 'conform'.format { async = true } end
|
||||
'';
|
||||
options.desc = "Format Buffer";
|
||||
}
|
||||
];
|
||||
|
||||
plugins.conform-nvim = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_format_opts.lsp_format = "fallback";
|
||||
format_on_save = {
|
||||
lsp_format = "fallback";
|
||||
timeout_ms = 500;
|
||||
};
|
||||
|
||||
formatters_by_ft = {
|
||||
c = [ "clang-format" ];
|
||||
lua = [ "stylua" ];
|
||||
nix = [ "nixfmt" ];
|
||||
python = [ "ruff_format" ];
|
||||
};
|
||||
|
||||
formatters.clang-format.prepend_args = [
|
||||
"--style=file"
|
||||
"--fallback-style=LLVM"
|
||||
];
|
||||
plugins.conform-nvim = {
|
||||
enable = true;
|
||||
settings = {
|
||||
default_format_opts.lsp_format = "fallback";
|
||||
format_on_save = {
|
||||
lsp_format = "fallback";
|
||||
timeout_ms = 500;
|
||||
};
|
||||
};
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
stylua
|
||||
nixfmt
|
||||
ruff
|
||||
];
|
||||
formatters_by_ft = {
|
||||
c = [ "clang-format" ];
|
||||
lua = [ "stylua" ];
|
||||
nix = [ "nixfmt" ];
|
||||
python = [ "ruff_format" ];
|
||||
};
|
||||
|
||||
formatters.clang-format.prepend_args = [
|
||||
"--style=file"
|
||||
"--fallback-style=LLVM"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
stylua
|
||||
nixfmt
|
||||
ruff
|
||||
];
|
||||
}
|
||||
+37
-39
@@ -3,60 +3,58 @@
|
||||
./typst.nix
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
diagnostic.settings = {
|
||||
severity_sort = true;
|
||||
float = {
|
||||
border = "rounded";
|
||||
source = "if_many";
|
||||
};
|
||||
signs.text.__raw = "{
|
||||
diagnostic.settings = {
|
||||
severity_sort = true;
|
||||
float = {
|
||||
border = "rounded";
|
||||
source = "if_many";
|
||||
};
|
||||
signs.text.__raw = "{
|
||||
[vim.diagnostic.severity.ERROR] = ' ',
|
||||
[vim.diagnostic.severity.WARN] = ' ',
|
||||
[vim.diagnostic.severity.INFO] = ' ',
|
||||
[vim.diagnostic.severity.HINT] = ' ',
|
||||
}";
|
||||
virtual_text = {
|
||||
source = "if_many";
|
||||
spacing = 2;
|
||||
format.__raw = "
|
||||
virtual_text = {
|
||||
source = "if_many";
|
||||
spacing = 2;
|
||||
format.__raw = "
|
||||
function(diagnostic)
|
||||
return diagnostic.message
|
||||
end
|
||||
";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
plugins = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
plugins = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
silent = true;
|
||||
lspBuf = {
|
||||
"gd" = "definition";
|
||||
"gD" = "declaration";
|
||||
"gr" = "references";
|
||||
"gI" = "implementation";
|
||||
"<leader>ca" = "code_action";
|
||||
"<leader>D" = "type_definition";
|
||||
"<leader>rn" = "rename";
|
||||
};
|
||||
keymaps = {
|
||||
silent = true;
|
||||
lspBuf = {
|
||||
"gd" = "definition";
|
||||
"gD" = "declaration";
|
||||
"gr" = "references";
|
||||
"gI" = "implementation";
|
||||
"<leader>ca" = "code_action";
|
||||
"<leader>D" = "type_definition";
|
||||
"<leader>rn" = "rename";
|
||||
};
|
||||
};
|
||||
|
||||
servers = {
|
||||
lua_ls.enable = true;
|
||||
nil_ls.enable = true;
|
||||
basedpyright.enable = true;
|
||||
ts_ls.enable = true;
|
||||
vue_ls.enable = true;
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
installCargo = false;
|
||||
installRustc = false;
|
||||
};
|
||||
clangd.enable = true;
|
||||
servers = {
|
||||
lua_ls.enable = true;
|
||||
nil_ls.enable = true;
|
||||
basedpyright.enable = true;
|
||||
ts_ls.enable = true;
|
||||
vue_ls.enable = true;
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
installCargo = false;
|
||||
installRustc = false;
|
||||
};
|
||||
clangd.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
programs.nixvim.plugins.lualine = {
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
settings = {
|
||||
options = {
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
];
|
||||
|
||||
programs.nixvim.plugins.telescope = {
|
||||
plugins.telescope = {
|
||||
enable = true;
|
||||
extensions.fzf-native.enable = true;
|
||||
keymaps = {
|
||||
@@ -43,4 +39,7 @@
|
||||
"%.ipynb"
|
||||
];
|
||||
};
|
||||
extraPackages = with pkgs; [
|
||||
ripgrep
|
||||
];
|
||||
}
|
||||
@@ -1,14 +1,12 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
highlight.enable = true;
|
||||
indent.enable = true;
|
||||
};
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
gcc
|
||||
];
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
highlight.enable = true;
|
||||
indent.enable = true;
|
||||
};
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
gcc
|
||||
];
|
||||
}
|
||||
@@ -1,10 +1,8 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
dependencies.tinymist.enable = true;
|
||||
dependencies.websocat.enable = true;
|
||||
dependencies.tinymist.enable = true;
|
||||
dependencies.websocat.enable = true;
|
||||
|
||||
plugins.typst-preview.enable = true;
|
||||
plugins.typst-preview.enable = true;
|
||||
|
||||
plugins.lsp.servers.tinymist.enable = true;
|
||||
};
|
||||
plugins.lsp.servers.tinymist.enable = true;
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
programs.nixvim.plugins.which-key.enable = true;
|
||||
plugins.which-key.enable = true;
|
||||
}
|
||||
+3
-2
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
@@ -10,6 +11,8 @@
|
||||
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
|
||||
in
|
||||
{
|
||||
package = pkgs.nix;
|
||||
|
||||
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
|
||||
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
|
||||
|
||||
@@ -17,8 +20,6 @@
|
||||
nixPath = lib.mapAttrsToList (key: _: "${key}=flake:${key}") config.nix.registry;
|
||||
|
||||
settings.experimental-features = "nix-command flakes";
|
||||
|
||||
channels.enable = false;
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
+13
-15
@@ -1,25 +1,23 @@
|
||||
{
|
||||
pkgs,
|
||||
self,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (inputs.home-manager.lib) homeManagerConfiguration;
|
||||
|
||||
extraSpecialArgs = { inherit inputs; };
|
||||
extraSpecialArgs = { inherit self inputs; };
|
||||
in
|
||||
{
|
||||
leonhard = homeManagerConfiguration {
|
||||
inherit pkgs extraSpecialArgs;
|
||||
modules = [
|
||||
./base.nix
|
||||
../home
|
||||
../options.nix
|
||||
{
|
||||
nix-leonhard.graphical = false;
|
||||
nix-leonhard.neovim.enable = true;
|
||||
nix-leonhard.neovim.typst.enable = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
homeManagerConfiguration {
|
||||
inherit pkgs extraSpecialArgs;
|
||||
modules = [
|
||||
./base.nix
|
||||
../home
|
||||
../options.nix
|
||||
{
|
||||
nix-leonhard.graphical = false;
|
||||
nix-leonhard.neovim.enable = true;
|
||||
}
|
||||
];
|
||||
}
|
||||
+4
-1
@@ -1,6 +1,7 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
@@ -10,6 +11,8 @@
|
||||
flakeInputs = lib.filterAttrs (_: v: lib.isType "flake" v) inputs;
|
||||
in
|
||||
{
|
||||
package = pkgs.nix;
|
||||
|
||||
# pin the registry to avoid downloading and evaling a new nixpkgs version every time
|
||||
registry = lib.mapAttrs (_: v: { flake = v; }) flakeInputs;
|
||||
|
||||
@@ -21,6 +24,6 @@
|
||||
"flakes"
|
||||
];
|
||||
|
||||
channels.enable = false;
|
||||
channel.enable = false;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user