diff --git a/.config/nvim/flake.nix b/.config/nvim/flake.nix index 71c097a..2206ad7 100644 --- a/.config/nvim/flake.nix +++ b/.config/nvim/flake.nix @@ -65,9 +65,6 @@ startupPlugins = { general = with pkgs.vimPlugins; [ - lze - lzextras - eyeliner-nvim fzf-lua ltex_extra-nvim diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 72bd50d..2ed7ee5 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -4,8 +4,9 @@ require("vim") require("ftdetect") require("keymaps") require("highlight") -require("paq-setup") -- when not on nixCats require("diagnostic") +require("paq-setup") -- when not on nixCats + -- vim.opt.background = "dark" -- vim.opt.laststatus = 3 diff --git a/.config/nvim/lua/nixCatsUtils/lzUtils.lua b/.config/nvim/lua/nixCatsUtils/lzUtils.lua deleted file mode 100644 index bf992f2..0000000 --- a/.config/nvim/lua/nixCatsUtils/lzUtils.lua +++ /dev/null @@ -1,37 +0,0 @@ --- Source: https://github.com/BirdeeHub/nixCats-nvim/blob/main/templates/example/lua/nixCatsUtils/lzUtils.lua ---[[ - This directory is the luaUtils template. - You can choose what things from it that you would like to use. - And then delete the rest. - Everything in this directory is optional. ---]] - -local M = {} --- A nixCats specific lze handler that you can use to conditionally enable by category easier. --- at the start of your config, register with --- require('lze').register_handlers(require('nixCatsUtils.lzUtils').for_cat) --- before any calls to require('lze').load using the handler have been made. --- accepts: --- for_cat = { "your" "cat" }; --- for_cat = { cat = { "your" "cat" }, default = bool } --- for_cat = "your.cat"; --- for_cat = { cat = "your.cat", default = bool } --- where default is an alternate value for when nixCats was NOT used to install the config -M.for_cat = { - spec_field = "for_cat", - set_lazy = false, - modify = function(plugin) - if type(plugin.for_cat) == "table" and plugin.for_cat.cat ~= nil then - if vim.g[ [[nixCats-special-rtp-entry-nixCats]] ] ~= nil then - plugin.enabled = nixCats(plugin.for_cat.cat) or false - else - plugin.enabled = plugin.for_cat.default - end - else - plugin.enabled = nixCats(plugin.for_cat) or false - end - return plugin - end, -} - -return M