From 15140899138e7d266fdca967bbd08ff94be23c61 Mon Sep 17 00:00:00 2001 From: 4o1x5 <4o1x5@4o1x5.dev> Date: Sat, 21 Dec 2024 19:29:50 +0100 Subject: [PATCH] colorschemes: added my own theme --- config/options.nix | 36 ++++++++++++++------------------- config/plugins/lang/default.nix | 2 +- config/plugins/lang/sh.nix | 17 ++++++++++++++++ 3 files changed, 33 insertions(+), 22 deletions(-) create mode 100644 config/plugins/lang/sh.nix diff --git a/config/options.nix b/config/options.nix index 845627c..99471d8 100644 --- a/config/options.nix +++ b/config/options.nix @@ -1,7 +1,5 @@ { pkgs, ... }: { - colorschemes.oxocarbon.enable = true; - #colorscheme = "shades_of_purple"; - colorscheme = "oxocarbon"; + colorscheme = "shades_of_purple"; opts = { number = true; @@ -10,28 +8,24 @@ # Set as leader globals.mapleader = " "; - autoCmd = [ - # Start aw-watcher-vim on startup - { - command = ":'"; - event = [ - "VimEnter" - ]; - } - ]; + extraPlugins = with pkgs; [ { - plugin = pkgs.vimUtils.buildVimPlugin { - pname = "lush"; - version = "1.0.0"; # dummy version - src = pkgs.fetchFromGitHub { - owner = "rktjmp"; - repo = "lush.nvim"; - rev = "45a79ec4acb5af783a6a29673a999ce37f00497e"; - hash = "sha256-meUCXjJ9kHOOpRd4TR2dc7Ai97zOQX35hYFEDZseiSk="; + plugin = pkgs.vimUtils.buildVimPlugin + { + pname = "shades_of_purple"; + version = "1.0.1"; # dummy version + src = pkgs.fetchFromGitea { + domain = "git.4o1x5.dev"; + owner = "4o1x5"; + repo = "shades-of-purple-nvim"; + rev = "c009b792d7e23e5fa988e8741997506cc53c52b1"; + hash = "sha256-LRXzVRWZV9Tk0hEsDmdr64dURLVW0XJzlolzDxjd40k="; + }; }; - }; } + + vimPlugins.lush-nvim ]; } diff --git a/config/plugins/lang/default.nix b/config/plugins/lang/default.nix index 042b717..c7721a2 100644 --- a/config/plugins/lang/default.nix +++ b/config/plugins/lang/default.nix @@ -13,10 +13,10 @@ ./protobuf.nix ./python.nix ./rust.nix + ./sh.nix ./ts.nix ./yaml.nix ./csharp.nix - # TODO elixir # TODO java ]; diff --git a/config/plugins/lang/sh.nix b/config/plugins/lang/sh.nix new file mode 100644 index 0000000..ad44457 --- /dev/null +++ b/config/plugins/lang/sh.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: +{ + plugins = { + conform-nvim.settings = { + formatters_by_ft = { + sh = [ "shfmt" ]; + }; + formatters = { + shfmt = { + command = "${pkgs.shfmt}/bin/shfmt"; + }; + }; + }; + + lsp.servers.bashls.enable = true; + }; +}