From 253293913432011806c49bc25aac47a97990ee5c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 5 Jan 2025 14:02:07 +0000 Subject: [PATCH] Messing around with neovim again --- system/default.nix | 1 + system/home/neovim/default.nix | 53 ++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 system/home/neovim/default.nix diff --git a/system/default.nix b/system/default.nix index c4a993d9..8adbbda4 100644 --- a/system/default.nix +++ b/system/default.nix @@ -134,6 +134,7 @@ imports = [ ./home/shell/default.nix ./home/scripts/default.nix + ./home/neovim/default.nix ]; home = { inherit username; diff --git a/system/home/neovim/default.nix b/system/home/neovim/default.nix new file mode 100644 index 00000000..3186f0c7 --- /dev/null +++ b/system/home/neovim/default.nix @@ -0,0 +1,53 @@ +{ pkgs, ... }: +{ + stylix.targets.neovim.enable = false; + stylix.targets.neovim.transparentBackground = { + main = true; + signColumn = true; + }; + programs.neovim = { + enable = true; + # defaultEditor = true; + viAlias = true; + vimAlias = true; + vimdiffAlias = true; + withNodeJs = true; + withRuby = true; + withPython3 = true; + extraLuaConfig = '' + require "defaults" + ''; + # extraPackages = with pkgs; [ + # # Misc utils + # curl + # fzf + # git + # gnutar + # gnumake + # gnused + # gcc + # ripgrep + # tree-sitter + + # # Language servers + # nil + # lua-language-server + # fortls + # nodePackages.pyright + # nodePackages.yaml-language-server + # nodePackages.vim-language-server + # nodePackages.bash-language-server + + # # Null LSP formatters + # alejandra + # beautysh + # black + # nodePackages.fixjson + # fprettify + # isort + # python3Packages.mdformat + # shellharden + # stylua + # ]; + }; +}