♻️ refactor(nvim): replace a lot of things do to snacks.nvim addition
This commit is contained in:
parent
8a21254df3
commit
e133013776
9 changed files with 4 additions and 30 deletions
|
@ -191,11 +191,11 @@ map("n", "<leader>@", "zug", { desc = "Remove Word from Dictionary" })
|
||||||
-- Terminal Stuff
|
-- Terminal Stuff
|
||||||
if not LazyVim.has("floaterm.nvim") or not LazyVim.has("toggleterm.nvim") then
|
if not LazyVim.has("floaterm.nvim") or not LazyVim.has("toggleterm.nvim") then
|
||||||
local lazyterm = function()
|
local lazyterm = function()
|
||||||
LazyVim.terminal(nil, { size = { width = 0.8, height = 0.8 }, cwd = LazyVim.root() })
|
Snacks.terminal(nil, { size = { width = 0.8, height = 0.8 }, cwd = LazyVim.root() })
|
||||||
end
|
end
|
||||||
map("n", "<leader>ft", lazyterm, { desc = "Terminal (Root Dir)" })
|
map("n", "<leader>ft", lazyterm, { desc = "Terminal (Root Dir)" })
|
||||||
map("n", "<leader>fT", function()
|
map("n", "<leader>fT", function()
|
||||||
LazyVim.terminal(nil, { size = { width = 0.8, height = 0.8 }, cwd = vim.fn.getcwd() })
|
Snacks.terminal(nil, { size = { width = 0.8, height = 0.8 }, cwd = vim.fn.getcwd() })
|
||||||
end, { desc = "Terminal (cwd)" })
|
end, { desc = "Terminal (cwd)" })
|
||||||
map("n", [[<c-\>]], lazyterm, { desc = "Terminal (Root Dir)" })
|
map("n", [[<c-\>]], lazyterm, { desc = "Terminal (Root Dir)" })
|
||||||
map("t", [[<c-\>]], "<cmd>close<cr>", { desc = "Hide Terminal" })
|
map("t", [[<c-\>]], "<cmd>close<cr>", { desc = "Hide Terminal" })
|
||||||
|
@ -229,7 +229,7 @@ map("n", "go", "<Cmd>call append(line('.'), repeat([''], v:count1))<CR>", { desc
|
||||||
map({ "c", "i", "t" }, "<M-BS>", "<C-w>", { desc = "Delete Word" })
|
map({ "c", "i", "t" }, "<M-BS>", "<C-w>", { desc = "Delete Word" })
|
||||||
|
|
||||||
-- Git
|
-- Git
|
||||||
map("n", "<leader>ghb", LazyVim.lazygit.blame_line, { desc = "Blame Line" })
|
map("n", "<leader>ghb", Snacks.git.blame_line, { desc = "Blame Line" })
|
||||||
|
|
||||||
-- Windows Split
|
-- Windows Split
|
||||||
map("n", "<leader>_", "<C-W>s", { desc = "Split Window Below", remap = true })
|
map("n", "<leader>_", "<C-W>s", { desc = "Split Window Below", remap = true })
|
||||||
|
|
|
@ -7,8 +7,6 @@ vim.loader.enable()
|
||||||
-- Personal Config and LazyVim global options
|
-- Personal Config and LazyVim global options
|
||||||
go.lualine_info_extras = false
|
go.lualine_info_extras = false
|
||||||
go.codeium_cmp_hide = false
|
go.codeium_cmp_hide = false
|
||||||
go.lazyvim_statuscolumn.folds_open = true
|
|
||||||
go.lazyvim_statuscolumn.folds_githl = true
|
|
||||||
go.lazygit_config = false
|
go.lazygit_config = false
|
||||||
|
|
||||||
-- Define leader key
|
-- Define leader key
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"chrisgrieser/nvim-recorder",
|
"chrisgrieser/nvim-recorder",
|
||||||
dependencies = { "rcarriga/nvim-notify" },
|
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
vscode = true,
|
vscode = true,
|
||||||
keys = {
|
keys = {
|
||||||
|
|
|
@ -3,9 +3,6 @@ local prefix = "<leader>a"
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"chrisgrieser/nvim-scissors",
|
"chrisgrieser/nvim-scissors",
|
||||||
dependencies = {
|
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
},
|
|
||||||
opts = {
|
opts = {
|
||||||
jsonFormatter = "jq",
|
jsonFormatter = "jq",
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
return {
|
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
opts = {
|
|
||||||
fps = 75,
|
|
||||||
stages = "slide",
|
|
||||||
render = "wrapped-compact",
|
|
||||||
timeout = 2000,
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
return {
|
|
||||||
"LunarVim/bigfile.nvim",
|
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
|
||||||
opts = {
|
|
||||||
filesize = 1, -- size of the file in MiB, the plugin round file sizes to the closest MiB
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -8,7 +8,6 @@ return {
|
||||||
|
|
||||||
-- optional
|
-- optional
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
},
|
},
|
||||||
opts = {},
|
opts = {},
|
||||||
|
|
|
@ -2,9 +2,6 @@ return {
|
||||||
{
|
{
|
||||||
"epwalsh/pomo.nvim",
|
"epwalsh/pomo.nvim",
|
||||||
cmd = { "TimerStart", "TimerStop", "TimerRepeat" },
|
cmd = { "TimerStart", "TimerStop", "TimerRepeat" },
|
||||||
dependencies = {
|
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
},
|
|
||||||
opts = {
|
opts = {
|
||||||
notifiers = {
|
notifiers = {
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,6 @@ return {
|
||||||
{ "windwp/nvim-ts-autotag" },
|
{ "windwp/nvim-ts-autotag" },
|
||||||
|
|
||||||
-- UI
|
-- UI
|
||||||
{ "rcarriga/nvim-notify" },
|
|
||||||
{ "lukas-reineke/indent-blankline.nvim" },
|
{ "lukas-reineke/indent-blankline.nvim" },
|
||||||
{ "stevearc/dressing.nvim" },
|
{ "stevearc/dressing.nvim" },
|
||||||
{ "folke/noice.nvim" },
|
{ "folke/noice.nvim" },
|
||||||
|
@ -31,5 +30,6 @@ return {
|
||||||
|
|
||||||
-- Util
|
-- Util
|
||||||
{ "folke/persistence.nvim" },
|
{ "folke/persistence.nvim" },
|
||||||
|
{ "folke/snacks.nvim" },
|
||||||
{ "nvim-lua/plenary.nvim" },
|
{ "nvim-lua/plenary.nvim" },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue