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 lexical = pkgs.lexical.override {
14 beamPackages = pkgs.beam27Packages;
15 };
16 in ''
17 set runtimepath+=${./nvim}/after
18 set runtimepath^=${./nvim}
19 lua << EOF
20 vim.g.lsp_paths = {
21 ['rust_analyzer'] = "${pkgs.rust-analyzer}/bin/rust-analyzer",
22 ['lexical'] = "${lexical}/bin/lexical",
23 ['elp'] = "${pkgs.erlang-language-platform}/bin/elp",
24 ['typos_lsp'] = "${pkgs.typos-lsp}/bin/typos-lsp"
25 }
26 package.path = package.path .. ";${pkgs.luajitPackages.fennel}/share/lua/5.1/?.lua"
27 require('basic')
28 EOF
29 '';
30 packages.global = let
31 plugins = pkgs.vimPlugins;
32 in {
33 start = [
34 plugins.packer-nvim
35 plugins.vim-nickel
36 # plugins.lua-utils-nvim
37 # plugins.neorg
38 # plugins.neorg-telescope
39 plugins.nvim-treesitter.withAllGrammars
40 ];
41
42 opt = [];
43 };
44 };
45 };
46in {
47 nixpkgs.overlays = [
48 # inputs.neorg-overlay.overlays.default
49 ];
50
51 home.sessionVariables.EDITOR = "nvim";
52 home.packages = [nvim];
53}