diff --git a/flake.nix b/flake.nix index de853e5..269ae8c 100644 --- a/flake.nix +++ b/flake.nix @@ -26,9 +26,8 @@ outputs = { self, nixpkgs, neovim, ... }@inputs: { nixosModules.neovim = {config, pkgs, ...} : { - environment.systemPackages = [ - inputs.neovim.packages.${pkgs.system}.neovim - pkgs.nodePackages.pyright + environment.systemPackages = with pkgs; [ + inputs.neovim.packages.${pkgs.system}.neovim ]; programs.neovim = { enable = true; @@ -36,18 +35,9 @@ set runtimepath+=${inputs.plugin-dracula} set runtimepath+=${inputs.plugin-lsp} colorscheme dracula - - lua << EOF - local lspconfig = require('lspconfig') - - -- Configuration de Pyright pour Python - lspconfig.pyright.setup { - on_attach = function(client, bufnr) - print("LSP started.") - end, - cmd = {"pyright-langserver", "--stdio"} - } - EOF + set expandtab + set shiftwidth=4 + EOF ''; }; };