update ci

This commit is contained in:
Jonathan Dönszelmann 2025-02-01 15:55:05 +01:00
parent d030ebe744
commit 76ed037b04
No known key found for this signature in database
11 changed files with 1278 additions and 55 deletions

View file

@ -5,7 +5,11 @@ let
};
in
{
home = { sessionVariables = { EDITOR = "nvim"; }; };
home = {
sessionVariables = {
EDITOR = "nvim";
};
};
imports = [
./options.nix
@ -40,6 +44,9 @@ in
};
};
extraLuaPackages = ps: [ ps.magick ];
extraPackages = [ pkgs.imagemagick ];
# package = pkgs.neovim-unwrapped;
package = (pkgs.neovim-unwrapped.override { lua = pkgs.luajit; }).overrideAttrs (_: {
version = "git";
@ -49,20 +56,22 @@ in
rev = "76dcc7029b200e1d85024d7ba4a34c602e730dbe";
hash = "sha256-y3LmGebXuQhLz9w1IzkDU8b464WvMvPCbIImpVvxmcI=";
};
buildInputs = [
(pkgs.utf8proc.overrideAttrs (_: {
version = "git";
buildInputs =
[
(pkgs.utf8proc.overrideAttrs (_: {
version = "git";
src = pkgs.fetchFromGitHub
{
src = pkgs.fetchFromGitHub {
owner = "JuliaStrings";
repo = "utf8proc";
rev = "3de4596fbe28956855df2ecb3c11c0bbc3535838";
hash = "sha256-DNnrKLwks3hP83K56Yjh9P3cVbivzssblKIx4M/RKqw=";
};
}))
] ++ pkgs.neovim-unwrapped.buildInputs ++ pkgs.neovim-unwrapped.nativeBuildInputs;
}))
]
++ pkgs.neovim-unwrapped.buildInputs
++ pkgs.neovim-unwrapped.nativeBuildInputs;
});
keymaps = [
@ -92,6 +101,9 @@ in
(map "i" "<S-tab>" "<c-d>")
(map "v" "<tab>" ">gv")
(map "v" "<S-tab>" "<gv")
# to avoid many typos
(map "n" ";" ":")
];
colorschemes.onedark = {
@ -113,11 +125,32 @@ in
extraConfigLuaPre = ''
require("neoconf").setup({})
'';
extraConfigLua = ''
require("render-markdown").setup {
latex_converter = '${pkgs.python312Packages.pylatexenc}/bin/latex2text',
}
'' + (builtins.readFile ./config.lua);
extraConfigLua =
''
require("render-markdown").setup {
latex_converter = '${pkgs.python312Packages.pylatexenc}/bin/latex2text',
}
local lspconfig = require 'lspconfig'
local configs = require 'lspconfig.configs'
if not configs.foo_lsp then
configs.noteslsp = {
default_config = {
-- cmd = {'${pkgs.custom.noteslsp}/bin/noteslsp'},
cmd = {'./noteslsp/target/debug/noteslsp'},
filetypes = {'markdown'},
root_dir = function(fname)
return lspconfig.util.find_git_ancestor(fname)
end,
settings = {}
,
},
}
end
lspconfig.noteslsp.setup{}
''
+ (builtins.readFile ./config.lua);
};
}