Add nvim-lazy submodule and add plugin configuration.
This commit is contained in:
parent
f545e30831
commit
b1ad0b623a
39 changed files with 1599 additions and 0 deletions
40
pkgsets/nvim.nix
Normal file
40
pkgsets/nvim.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
fn,
|
||||
nvim-lazy,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
{
|
||||
imports =
|
||||
[
|
||||
nvim-lazy.nixosModules.nvim-lazy
|
||||
]
|
||||
++ (fn.lst {
|
||||
path = (toString ./nvim);
|
||||
fullPath = true;
|
||||
});
|
||||
|
||||
programs.nvim-lazy = mkIf (elem "nvim" config.machine.pkgs) {
|
||||
enable = true;
|
||||
luaRcContent = # lua
|
||||
''
|
||||
vim.g.mapleader = " "
|
||||
vim.opt.tabstop = 2
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
-- TODO: fix option name
|
||||
-- vim.opt.nformats = alpha
|
||||
vim.bo.softtabstop = 2
|
||||
|
||||
vim.wo.number = true
|
||||
vim.wo.relativenumber = true
|
||||
|
||||
vim.opt.scrolloff = 10
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue