blob: 118852645da9ab2cdb2a92037667cf7aa15da101 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{ pkgs, config, lib, ... }:
let
nixvim = import (builtins.fetchGit {
url = "https://github.com/nix-community/nixvim";
});
in {
imports = [
nixvim.homeModules.nixvim
./colorscheme.nix
./keymaps.nix
./plugins.nix
];
options.tools.nixvim = {
enable = lib.mkEnableOption "Enables nixvim.";
};
config = lib.mkIf config.tools.nixvim.enable
{
programs.nixvim = {
enable = true;
opts = {
number = true;
relativenumber = true;
shiftwidth = 3;
tabstop = 3;
softtabstop = 3;
expandtab = false;
list = true;
laststatus = 3;
};
clipboard.providers.xclip.enable = true;
extraConfigLuaPre = with config.scheme.withHashtag; ''
vim.opt.fillchars:append({ eob = " " })
vim.opt.listchars = { tab = "| ", trail = "_", lead = "_" }
vim.api.nvim_set_hl(0, "WinSeparator", {
fg = "${base01}",
bg = "${base00}",
})
'';
performance.byteCompileLua.enable = true;
};
};
}
|