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