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