diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 4d06485..aaae136 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -12,6 +12,7 @@ "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, "harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" }, "lazy.nvim": { "branch": "main", "commit": "d8f26efd456190241afd1b0f5235fe6fdba13d4a" }, + "legendary.nvim": { "branch": "master", "commit": "f0067589b9e6de063afac707451689aa13cf6aff" }, "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" }, "lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" }, "lush.nvim": { "branch": "main", "commit": "45a79ec4acb5af783a6a29673a999ce37f00497e" }, @@ -30,6 +31,8 @@ "plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" }, "snacks.nvim": { "branch": "main", "commit": "b72364f916905bbb355d5105d364e96de118766d" }, "telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" }, + "smart-splits.nvim": { "branch": "master", "commit": "4a231987665d3c6e02ca88833d050e918afe3e1e" }, + "sqlite.lua": { "branch": "master", "commit": "b487fcc8937b683942a1f7d9662fcf50ca5acd58" }, "vim-gitgutter": { "branch": "main", "commit": "7b0b5098e3e57be86bb96cfbf2b8902381eef57c" }, "vim-nix": { "branch": "master", "commit": "e25cd0f2e5922f1f4d3cd969f92e35a9a327ffb0" }, "vimspector": { "branch": "master", "commit": "5e24df822e278ee79abfc8c7110089a5322d1a3c" }, diff --git a/nvim/lua/foodogsquared/init.lua b/nvim/lua/foodogsquared/init.lua new file mode 100644 index 0000000..e314374 --- /dev/null +++ b/nvim/lua/foodogsquared/init.lua @@ -0,0 +1,5 @@ +local M = {} + +M.utils = require("foodogsquared.utils") + +return M diff --git a/nvim/lua/foodogsquared/utils.lua b/nvim/lua/foodogsquared/utils.lua new file mode 100644 index 0000000..4fb43be --- /dev/null +++ b/nvim/lua/foodogsquared/utils.lua @@ -0,0 +1,7 @@ +local M = {} + +function M:to_bool(v) + return not not v +end + +return M diff --git a/nvim/lua/plugins/qol.lua b/nvim/lua/plugins/qol.lua index b5f6084..1f9dc95 100644 --- a/nvim/lua/plugins/qol.lua +++ b/nvim/lua/plugins/qol.lua @@ -1,3 +1,5 @@ +local _fds = require("../foodogsquared") + return { { "folke/snacks.nvim", @@ -89,6 +91,7 @@ return { end, }, + -- Oil and vinegar goes well as oil and your computer. { "stevearc/oil.nvim", dependencies = { @@ -100,7 +103,7 @@ return { default_file_explorer = true, columns = { "icon", "permissions" }, view_options = { - hidden = true, + show_hidden = true, }, }, @@ -115,4 +118,29 @@ return { }, }, }, + + { + "mrjones2014/smart-splits.nvim", + version = ">=1.0.0", + lazy = _fds.utils.to_bool(os.getenv("WEZTERM_CONFIG_DIR")), + keys = { + { "", + function() require("smart-splits").move_cursor_left() end, { desc = "smart-splits move cursor left" } }, + { "", + function() require("smart-splits").move_cursor_down() end, { desc = "smart-splits move cursor down" } }, + { "", + function() require("smart-splits").move_cursor_up() end, { desc = "smart-splits move cursor up" } }, + { "", + function() require("smart-splits").move_cursor_right() end, { desc = "smart-splits move cursor right" } }, + { "", + function() require("smart-splits").move_cursor_previous() end, { desc = "smart-splits move cursor previous" } }, + }, + }, + + { + "mrjones2014/legendary.nvim", + version = ">=2.0.0", + dependencies = { 'kkharji/sqlite.lua' }, + priority = 10000, + }, }