refactor(nvim): use extraLuaConfig instead of wrapped lua

main
mandlm 2024-07-29 11:16:26 +02:00
parent a5706c6dd1
commit 5a01031a10
Signed by: mandlm
GPG Key ID: 088ED38F036C7AF2
1 changed files with 32 additions and 34 deletions

View File

@ -137,45 +137,43 @@
luaPackages.pathlib-nvim
];
extraConfig = ''
lua << EOF
${builtins.readFile ./keymaps.lua }
${builtins.readFile ./options.lua }
${builtins.readFile ./commands.lua }
${builtins.readFile ./treesitter.lua }
${builtins.readFile ./lspconfig.lua }
${builtins.readFile ./auto-session.lua }
${builtins.readFile ./toggleterm.lua }
${builtins.readFile ./notify.lua }
${builtins.readFile ./comment.lua }
${builtins.readFile ./lualine.lua }
${builtins.readFile ./tabline.lua }
${builtins.readFile ./indent-blankline.lua }
${builtins.readFile ./gitsigns.lua }
${builtins.readFile ./luasnip.lua }
${builtins.readFile ./nvim-cmp.lua }
${builtins.readFile ./telescope.lua }
extraLuaConfig = ''
${builtins.readFile ./keymaps.lua }
${builtins.readFile ./options.lua }
${builtins.readFile ./commands.lua }
${builtins.readFile ./treesitter.lua }
${builtins.readFile ./lspconfig.lua }
${builtins.readFile ./auto-session.lua }
${builtins.readFile ./toggleterm.lua }
${builtins.readFile ./notify.lua }
${builtins.readFile ./comment.lua }
${builtins.readFile ./lualine.lua }
${builtins.readFile ./tabline.lua }
${builtins.readFile ./indent-blankline.lua }
${builtins.readFile ./gitsigns.lua }
${builtins.readFile ./luasnip.lua }
${builtins.readFile ./nvim-cmp.lua }
${builtins.readFile ./telescope.lua }
do
local vim_theme = "${theme}";
${builtins.readFile ./themes.lua }
end
do
local vim_theme = "${theme}";
${builtins.readFile ./themes.lua }
end
${builtins.readFile ./project-nvim.lua }
${builtins.readFile ./dap.lua }
${builtins.readFile ./illuminate.lua }
${builtins.readFile ./wilder.lua }
${builtins.readFile ./project-nvim.lua }
${builtins.readFile ./dap.lua }
${builtins.readFile ./illuminate.lua }
${builtins.readFile ./wilder.lua }
do
local vimwiki_path = "${vimwikiPath}"
${builtins.readFile ./vimwiki.lua }
end
do
local vimwiki_path = "${vimwikiPath}"
${builtins.readFile ./vimwiki.lua }
end
vim.g.gitblame_date_format = "%r"
vim.g.gitblame_date_format = "%r"
require("nvim-autopairs").setup({})
require("neogen").setup({ snippet_engine = "luasnip" })
EOF
require("nvim-autopairs").setup({})
require("neogen").setup({ snippet_engine = "luasnip" })
'';
};
};