~ruther/nixos-config

ref: 6904cf1761334d033556f106c82d79b48e6657f4 nixos-config/home/modules/profiles/development/nvim.nix -rw-r--r-- 1.2 KiB
6904cf17 — Frantisek Bohacek refactor: modularize the configuration 1 year, 1 day ago
                                                                                
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
46
47
48
49
50
51
52
53
54
55
56
#
# Neovim
#

{ config, pkgs, lib, ... }:

{
  config = lib.mkIf config.profiles.development.enable {
    programs = {
      neovim = {
        enable = true;
        viAlias = true;
        vimAlias = true;

        plugins = with pkgs.vimPlugins; [
          direnv-vim

          vim-nix
          vim-markdown

          vim-lastplace
          auto-pairs
          vim-gitgutter

          wombat256-vim
          srcery-vim

          lightline-vim
          indent-blankline-nvim

          nvim-surround
          vim-easymotion
          vim-sneak

          vim-commentary
        ];

        extraConfig = ''
          syntax enable                             " Syntax highlighting
          colorscheme srcery                        " Color scheme text

          set iskeyword=!-~,^*,^45,^124,^34,192-255,^_,^.,^,,^/,^\

          let g:lightline = {
            \ 'colorscheme': 'wombat',
            \ }                                     " Color scheme lightline

          highlight Comment cterm=italic gui=italic " Comments become italic
          hi Normal guibg=NONE ctermbg=NONE         " Remove background, better for personal theme

          set number                                " Set numbers
        '';
      };
    };
  };
}
Do not follow this link