restructure configs

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-16 10:10:38 +03:00
parent bed6e851cd
commit c6d1be78e8
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
10 changed files with 9 additions and 17 deletions

View File

@ -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" }

View File

@ -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; };
};
}