From 45ee82da0e90a2187af924c5ccc770c5b61dde1b Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 2 Nov 2024 14:00:30 +0000 Subject: [PATCH] Add glow plugin and update prefect variable - Add 'pkgs.glow' to 'default.nix' - Add and configure 'glow.nvim' plugin in 'plugins/default.nix' - Update 'postgres_dbname' variable to 'baseddata' in 'baseddata-worker.nix' --- home/common/core/nixvim/default.nix | 1 + home/common/core/nixvim/plugins/default.nix | 21 +++++++++++++++++++ .../nixos-containers/baseddata-worker.nix | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/home/common/core/nixvim/default.nix b/home/common/core/nixvim/default.nix index d0f9db2..53544ea 100644 --- a/home/common/core/nixvim/default.nix +++ b/home/common/core/nixvim/default.nix @@ -25,6 +25,7 @@ pkgs.shellharden pkgs.shfmt pkgs.stylua + pkgs.glow ]; programs.nixvim = { enable = true; diff --git a/home/common/core/nixvim/plugins/default.nix b/home/common/core/nixvim/plugins/default.nix index fe13b79..a33e02a 100644 --- a/home/common/core/nixvim/plugins/default.nix +++ b/home/common/core/nixvim/plugins/default.nix @@ -41,6 +41,17 @@ in { pkgs.vimPlugins.vim-dadbod-completion pkgs.vimPlugins.fugitive + (pkgs.vimUtils.buildVimPlugin + { + name = "glow.nvim"; + src = pkgs.fetchFromGitHub { + owner = "ellisonleao"; + repo = "glow.nvim"; + rev = "238070a"; + sha256 = "sha256-GsNcASzVvY0066kak2nvUY5luzanoBclqcUOsODww8g="; + }; + }) + (pkgs.vimUtils.buildVimPlugin { name = "parrot.nvim"; @@ -116,6 +127,16 @@ in { } ) + require('glow').setup({ + border = "shadow", + style = "dark", + pager = false, + width = 80, + height = 100, + width_ratio = 0.7, + height_ratio = 0.7, + }) + -- Custom color for modified buffers vim.api.nvim_set_hl(0, "BufferManagerModified", { fg = "#988100" }) diff --git a/hosts/common/optional/nixos-containers/baseddata-worker.nix b/hosts/common/optional/nixos-containers/baseddata-worker.nix index f6b2606..5e47f94 100644 --- a/hosts/common/optional/nixos-containers/baseddata-worker.nix +++ b/hosts/common/optional/nixos-containers/baseddata-worker.nix @@ -235,7 +235,7 @@ in { .venv/bin/prefect variable set "osm_history_dir" "/media/baseddata-data/osm-history" --overwrite .venv/bin/prefect variable set "mongo_db_name" "baseddata" --overwrite - .venv/bin/prefect variable set "postgres_dbname" "dev_baseddata_models" --overwrite + .venv/bin/prefect variable set "postgres_dbname" "baseddata" --overwrite .venv/bin/prefect variable set "postgres_schema" "models_final" --overwrite .venv/bin/prefect variable set "unique_key" "row_uuid" --overwrite