Massive Updates

This commit is contained in:
sankalp committed 2024-01-09 14:05:16 +05:45
1 parent 28d3a2c1d2
commit e19a04e930
29 files changed
+462 -193

No files matched your search

@@ -14,6 +14,7 @@ return {
"markdown",
"python",
"lua",
"html",
},
},
}
@@ -0,0 +1,39 @@
--[[
Enable project-specific plugin specs.
File .lazy.lua:
is read when present in the current working directory
should return a plugin spec
has to be manually trusted for each instance of the file
This extra should be the last plugin spec added to lazy.nvim
See:
:h 'exrc'
:h :trust
--]]
local filepath = vim.fn.fnamemodify(".lazy.lua", ":p")
local file = vim.secure.read(filepath)
if not file then
return {}
end
vim.api.nvim_create_autocmd("User", {
pattern = "VeryLazy",
once = true,
callback = function()
local Config = require("lazy.core.config")
local Util = require("lazyvim.util")
local lazyrc_idx = Util.plugin.extra_idx("lazyrc")
if lazyrc_idx and lazyrc_idx ~= #Config.spec.modules then
Util.warn({
"The `lazyrc` extra must be the last plugin spec added to **lazy.nvim**. ",
"",
"Add `{ import = 'lazyvim.plugins.extras.lazyrc' }` to file `config.lazy`. ",
"Do not use the `LazyExtras` command. ",
}, { title = "LazyVim", once = true })
end
end,
})
return loadstring(file)()
@@ -0,0 +1,19 @@
return {
"mrjones2014/smart-splits.nvim",
build = "./kitty/install-kittens.bash",
-- stylua: ignore
keys = {
{ "<C-A-Left>", function() require("smart-splits").resize_left() end, desc = "Resize left" },
{ "<C-A-Down>", function() require("smart-splits").resize_down() end, desc = "Resize down" },
{ "<C-A-Up>", function() require("smart-splits").resize_up() end, desc = "Resize up" },
{ "<C-A-Right>", function() require("smart-splits").resize_right() end, desc = "Resize right" },
{ "<C-h>", function() require("smart-splits").move_cursor_left() end, desc = "Move cursor left" },
{ "<C-j>", function() require("smart-splits").move_cursor_down() end, desc = "Move cursor down" },
{ "<C-k>", function() require("smart-splits").move_cursor_up() end, desc = "Move cursor up" },
{ "<C-l>", function() require("smart-splits").move_cursor_right() end, desc = "Move cursor right" },
{ "<C-A-h>", function() require("smart-splits").swap_buf_left() end, desc = "Swap buffer left" },
{ "<C-A-j>", function() require("smart-splits").swap_buf_down() end, desc = "Swap buffer down" },
{ "<C-A-k>", function() require("smart-splits").swap_buf_up() end, desc = "Swap buffer up" },
{ "<C-A-l>", function() require("smart-splits").swap_buf_right() end, desc = "Swap buffer right" },
},
}
@@ -0,0 +1,5 @@
return {
"aserowy/tmux.nvim",
event = "VeryLazy",
opts = {},
}
@@ -12,6 +12,10 @@ local map = vim.keymap.set
local enabled = {
"flash.nvim",
"lazy.nvim",
"dial.nvim",
"mini.align",
"comment-box.nvim",
"text-case.nvim",
"mini.ai",
"mini.comment",
"mini.pairs",
@@ -22,6 +26,7 @@ local enabled = {
"nvim-ts-context-commentstring",
"vim-repeat",
"highlight-undo.nvim",
"ts-node-action",
"LazyVim",
}