use dofile instead of require

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-12 21:54:08 +01:00
parent 44cde39f72
commit 3cd1ef9e97
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -13,31 +13,31 @@ in {
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
{ {
plugin = nerdtree; plugin = nerdtree;
config = "lua require(\"${./nerdtree.lua}\")"; config = "lua dofile(\"${./nerdtree.lua}\")";
} }
{ {
plugin = nerdtree-git-plugin; plugin = nerdtree-git-plugin;
config = "lua require(\"${./nerdtree-git.lua}\")"; config = "lua dofile(\"${./nerdtree-git.lua}\")";
} }
vim-devicons vim-devicons
{ {
plugin = ctrlp-vim; plugin = ctrlp-vim;
config = "lua require(\"${./ctrlp.lua}\")"; config = "lua dofile(\"${./ctrlp.lua}\")";
} }
vim-nix vim-nix
{ {
plugin = tagbar; plugin = tagbar;
config = "lua require(\"${./tagbar.lua}\")"; config = "lua dofile(\"${./tagbar.lua}\")";
} }
{ {
plugin = vim-airline; plugin = vim-airline;
config = "lua require(\"${./airline.lua}\")"; config = "lua dofile(\"${./airline.lua}\")";
} }
copilot-vim copilot-vim
rust-vim # for proper syntax highlighting rust-vim # for proper syntax highlighting
{ {
plugin = nvim-lspconfig; plugin = nvim-lspconfig;
config = "lua require(\"${./lsp.lua}\")"; config = "lua dofile(\"${./lsp.lua}\")";
} }
vim-gitgutter vim-gitgutter
nvim-web-devicons nvim-web-devicons