#+title: Neovim Settings

Create a simple Neovim configuration. Install some basic packages and use a light colour scheme.
#+begin_src nix
  { config, pkgs, ... }:

  {
    programs.neovim = {
      enable = true;

      defaultEditor = true;
      viAlias = true;
      vimAlias = true;
      plugins = with pkgs.vimPlugins; [
        vim-trailing-whitespace
        lightline-vim
        delimitMate
      ];
      extraLuaConfig = ''
        vim.opt.tabstop = 4
        vim.opt.expandtab = true
        vim.opt.shiftwidth = 4
        vim.opt.autoindent = true
        vim.opt.wildmode = 'longest,list'
        vim.opt.number = true
        vim.g.background = light
        vim.cmd [[colorscheme default]]
        vim.cmd [[set notermguicolors]]
      '';
    };
  }
#+end_src
