32 lines
774 B
Org Mode
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
|