diff options
| author | bee <beebeeb5k@gmail.com> | 2026-05-05 22:37:10 +0530 |
|---|---|---|
| committer | bee <beebeeb5k@gmail.com> | 2026-05-05 22:37:10 +0530 |
| commit | 9365a8e96827cbf7bc5adad6d29bcd05b4d761b2 (patch) | |
| tree | 0998a5dcfc4517e4112a2c589e04ac0dbc1e011b /init.lua | |
| parent | 0c50f17133b90c60735f1f51943f51f60372bdd3 (diff) | |
Migrate from nixcats to nix-wrapper-modules
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 38 |
1 files changed, 34 insertions, 4 deletions
@@ -1,6 +1,36 @@ -require("lze").register_handlers(require("nixCatsUtils.lzUtils").for_cat) +string.relpath = function(str, sub, n) + local result = {} + n = type(sub) == "string" and n or sub + if type(n) == "number" and n > 0 then + for match in (str .. "."):gmatch("(.-)%.") do + table.insert(result, match) + end + while n > 0 do + table.remove(result) + n = n - 1 + end + else + table.insert(result, str) + end + if type(sub) == "string" then + table.insert(result, sub) + end + return #result == 1 and result[1] or table.concat(result, ".") +end -require("config") -require("lze").load({ { import = "plugins" } }) +if not table.pack then + table.pack = function(...) + return { n = select("#", ...), ... } + end +end -require("colorscheme_persistence") +vim.loader.enable() +vim.g.mapleader = " " +vim.g.maplocalleader = " " +vim.o.exrc = false +vim.g.netrw_liststyle = 0 +vim.g.netrw_banner = 0 + +if vim.g.vscode == nil then + require("bee") +end |
