dotfiles/common/.flake/home/programs/neovim.nix.org
2024-10-07 18:55:30 -05:00

32 lines
774 B
Org Mode

#+title: Neovim Settings
Create a simple Neovim configuration.
#+begin_src nix :tangle ~/.flake/home/programs/neovim.nix :mkdirp yes
{ 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