diff --git a/flake.nix b/flake.nix index 7c2522e..27aec44 100644 --- a/flake.nix +++ b/flake.nix @@ -24,17 +24,19 @@ # Activer nvim programs.neovim = { enable = true; + + # Native way to configure Neovim + configure = { + customRC = '' + " Add Dracula to runtimepath + set runtimepath+=${inputs.plugin-dracula} + + " Enable Dracula colorscheme + colorscheme dracula + ''; + }; + }; - - # Set up Neovim configuration manually - xdg.configFile."nvim/init.lua".text = '' - -- Add Dracula to runtimepath - vim.opt.rtp:prepend("${inputs.plugin-dracula}"); - - -- Enable Dracula colorscheme - vim.cmd.colorscheme "dracula" - ''; - }; }; }