refactor(nvim): use extraLuaConfig instead of wrapped lua
This commit is contained in:
parent
a5706c6dd1
commit
5a01031a10
@ -137,45 +137,43 @@
|
|||||||
luaPackages.pathlib-nvim
|
luaPackages.pathlib-nvim
|
||||||
];
|
];
|
||||||
|
|
||||||
extraConfig = ''
|
extraLuaConfig = ''
|
||||||
lua << EOF
|
${builtins.readFile ./keymaps.lua }
|
||||||
${builtins.readFile ./keymaps.lua }
|
${builtins.readFile ./options.lua }
|
||||||
${builtins.readFile ./options.lua }
|
${builtins.readFile ./commands.lua }
|
||||||
${builtins.readFile ./commands.lua }
|
${builtins.readFile ./treesitter.lua }
|
||||||
${builtins.readFile ./treesitter.lua }
|
${builtins.readFile ./lspconfig.lua }
|
||||||
${builtins.readFile ./lspconfig.lua }
|
${builtins.readFile ./auto-session.lua }
|
||||||
${builtins.readFile ./auto-session.lua }
|
${builtins.readFile ./toggleterm.lua }
|
||||||
${builtins.readFile ./toggleterm.lua }
|
${builtins.readFile ./notify.lua }
|
||||||
${builtins.readFile ./notify.lua }
|
${builtins.readFile ./comment.lua }
|
||||||
${builtins.readFile ./comment.lua }
|
${builtins.readFile ./lualine.lua }
|
||||||
${builtins.readFile ./lualine.lua }
|
${builtins.readFile ./tabline.lua }
|
||||||
${builtins.readFile ./tabline.lua }
|
${builtins.readFile ./indent-blankline.lua }
|
||||||
${builtins.readFile ./indent-blankline.lua }
|
${builtins.readFile ./gitsigns.lua }
|
||||||
${builtins.readFile ./gitsigns.lua }
|
${builtins.readFile ./luasnip.lua }
|
||||||
${builtins.readFile ./luasnip.lua }
|
${builtins.readFile ./nvim-cmp.lua }
|
||||||
${builtins.readFile ./nvim-cmp.lua }
|
${builtins.readFile ./telescope.lua }
|
||||||
${builtins.readFile ./telescope.lua }
|
|
||||||
|
|
||||||
do
|
do
|
||||||
local vim_theme = "${theme}";
|
local vim_theme = "${theme}";
|
||||||
${builtins.readFile ./themes.lua }
|
${builtins.readFile ./themes.lua }
|
||||||
end
|
end
|
||||||
|
|
||||||
${builtins.readFile ./project-nvim.lua }
|
${builtins.readFile ./project-nvim.lua }
|
||||||
${builtins.readFile ./dap.lua }
|
${builtins.readFile ./dap.lua }
|
||||||
${builtins.readFile ./illuminate.lua }
|
${builtins.readFile ./illuminate.lua }
|
||||||
${builtins.readFile ./wilder.lua }
|
${builtins.readFile ./wilder.lua }
|
||||||
|
|
||||||
do
|
do
|
||||||
local vimwiki_path = "${vimwikiPath}"
|
local vimwiki_path = "${vimwikiPath}"
|
||||||
${builtins.readFile ./vimwiki.lua }
|
${builtins.readFile ./vimwiki.lua }
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.g.gitblame_date_format = "%r"
|
vim.g.gitblame_date_format = "%r"
|
||||||
|
|
||||||
require("nvim-autopairs").setup({})
|
require("nvim-autopairs").setup({})
|
||||||
require("neogen").setup({ snippet_engine = "luasnip" })
|
require("neogen").setup({ snippet_engine = "luasnip" })
|
||||||
EOF
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user