dotfiles/common/.flake/home/programs/neovim.nix.org
2024-12-16 23:28:56 -06:00

779 B

Neovim Settings

Create a simple Neovim configuration. Install some basic packages and use a light colour scheme.

  { 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]]
      '';
    };
  }