mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-02-25 00:18:59 +00:00
nvim: add smart-splits.nvim and legendary.nvim plugin
This commit is contained in:
parent
4990eae603
commit
931714b358
@ -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" },
|
||||
|
5
nvim/lua/foodogsquared/init.lua
Normal file
5
nvim/lua/foodogsquared/init.lua
Normal file
@ -0,0 +1,5 @@
|
||||
local M = {}
|
||||
|
||||
M.utils = require("foodogsquared.utils")
|
||||
|
||||
return M
|
7
nvim/lua/foodogsquared/utils.lua
Normal file
7
nvim/lua/foodogsquared/utils.lua
Normal file
@ -0,0 +1,7 @@
|
||||
local M = {}
|
||||
|
||||
function M:to_bool(v)
|
||||
return not not v
|
||||
end
|
||||
|
||||
return M
|
@ -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 = {
|
||||
{ "<C-h>",
|
||||
function() require("smart-splits").move_cursor_left() end, { desc = "smart-splits move cursor left" } },
|
||||
{ "<C-j>",
|
||||
function() require("smart-splits").move_cursor_down() end, { desc = "smart-splits move cursor down" } },
|
||||
{ "<C-k>",
|
||||
function() require("smart-splits").move_cursor_up() end, { desc = "smart-splits move cursor up" } },
|
||||
{ "<C-l>",
|
||||
function() require("smart-splits").move_cursor_right() end, { desc = "smart-splits move cursor right" } },
|
||||
{ "<C-\\>",
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user