this repo has no description
1{
2 config,
3 pkgs,
4 inputs,
5 ...
6}: let
7 nvim = pkgs.neovim.override {
8 configure = {
9 # Add Fennel to Lua path and require basic implementation
10 #
11 # runtimepath editing is not yet perfect, but works good enough so far
12 customRC = let
13 expert = inputs.expert.packages.${pkgs.stdenv.hostPlatform.system}.expert;
14 in ''
15 set runtimepath+=${./nvim}/after
16 set runtimepath^=${./nvim}
17 lua << EOF
18 vim.g.lsp_paths = {
19 ['rust_analyzer'] = "${pkgs.rust-analyzer}/bin/rust-analyzer",
20 ['expert'] = "${expert}/bin/expert",
21 ['elp'] = "${pkgs.erlang-language-platform}/bin/elp",
22 ['typos_lsp'] = "${pkgs.typos-lsp}/bin/typos-lsp"
23 }
24 package.path = package.path .. ";${pkgs.luajitPackages.fennel}/share/lua/5.1/?.lua"
25 require('basic')
26 EOF
27 '';
28 packages.global = let
29 plugins = pkgs.vimPlugins;
30 in {
31 start = [
32 plugins.packer-nvim
33 plugins.vim-nickel
34 # plugins.lua-utils-nvim
35 # plugins.neorg
36 # plugins.neorg-telescope
37 plugins.nvim-treesitter.withAllGrammars
38 ];
39
40 opt = [];
41 };
42 };
43 };
44in {
45 nixpkgs.overlays = [
46 # inputs.neorg-overlay.overlays.default
47 ];
48
49 home.sessionVariables.EDITOR = "nvim";
50 home.packages = [nvim];
51}