restructure configs
This commit is contained in:
parent
bed6e851cd
commit
c6d1be78e8
10 changed files with 9 additions and 17 deletions
|
@ -16,14 +16,6 @@ vim.opt.encoding = "utf-8"
|
|||
-- True color support
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
-- Theme (required plugin 'material-vim')
|
||||
-- Available styles: default, planight, ocean, lighter
|
||||
-- darker, default-community, palenight-community, ocean-community,
|
||||
-- lighter-community, darker-community
|
||||
-- vim.g.material_theme_style = "default"
|
||||
-- vim.g.lightline = { colorscheme = "material_vim" }
|
||||
-- vim.cmd("colorscheme material")
|
||||
|
||||
-- Other options
|
||||
vim.cmd("syntax on")
|
||||
vim.opt.backspace = { "indent", "eol", "start" }
|
18
default.nix
18
default.nix
|
@ -6,14 +6,15 @@ let
|
|||
callPlugins = list: builtins.map (p: callPackage p { }) list;
|
||||
|
||||
plugins = callPlugins [
|
||||
./syntax
|
||||
./explorer
|
||||
./theme
|
||||
./lsp
|
||||
./plugins/syntax
|
||||
./plugins/explorer
|
||||
./plugins/theme
|
||||
./plugins/lsp
|
||||
];
|
||||
|
||||
basicConfig = builtins.readFile ./basic.lua;
|
||||
|
||||
basicConfigs = [builtins.readFile ./config/basic.lua];
|
||||
pluginConfigs = lib.extractAttrs "luaConfig" plugins;
|
||||
allConfigs = basicConfigs ++ pluginConfigs;
|
||||
in
|
||||
wrapNeovim neovim-unwrapped {
|
||||
withPython3 = false;
|
||||
|
@ -21,9 +22,8 @@ wrapNeovim neovim-unwrapped {
|
|||
withRuby = false;
|
||||
|
||||
configure = {
|
||||
customRC = lib.mkLuaRc ([ basicConfig ] ++ lib.extractAttrs "luaConfig" plugins);
|
||||
customRC = lib.mkLuaRc allConfigs;
|
||||
|
||||
packages.myVimPackages =
|
||||
{ start = lib.extractAttrs "plugins" plugins; };
|
||||
packages.myVimPackages = { start = lib.extractAttrs "plugins" plugins; };
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue