bak
This commit is contained in:
parent
804b92e481
commit
892eac7d31
125
init.lua
125
init.lua
|
|
@ -396,6 +396,20 @@ require('lazy').setup({
|
||||||
end, { desc = '[S]earch [N]eovim files' })
|
end, { desc = '[S]earch [N]eovim files' })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'folke/flash.nvim',
|
||||||
|
event = 'VeryLazy',
|
||||||
|
---@type Flash.Config
|
||||||
|
opts = {},
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||||
|
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
|
||||||
|
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
|
||||||
|
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
|
||||||
|
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'ThePrimeagen/harpoon',
|
'ThePrimeagen/harpoon',
|
||||||
branch = 'harpoon2',
|
branch = 'harpoon2',
|
||||||
|
|
@ -729,12 +743,12 @@ require('lazy').setup({
|
||||||
cmd = { 'ConformInfo' },
|
cmd = { 'ConformInfo' },
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
'<leader>f',
|
'<leader>m',
|
||||||
function()
|
function()
|
||||||
require('conform').format { async = true, lsp_format = 'fallback' }
|
require('conform').format { async = true, lsp_format = 'fallback' }
|
||||||
end,
|
end,
|
||||||
mode = '',
|
mode = '',
|
||||||
desc = '[F]ormat buffer',
|
desc = 'For[m]at buffer',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
|
|
@ -861,12 +875,22 @@ require('lazy').setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
-- 'sainnhe/gruvbox-material',
|
||||||
|
-- lazy = false,
|
||||||
|
-- priority = 1000,
|
||||||
|
-- config = function()
|
||||||
|
-- vim.o.background = 'dark'
|
||||||
|
-- vim.g.gruvbox_material_enable_italic = true
|
||||||
|
-- vim.g.gruvbox_material_background = 'hard'
|
||||||
|
-- vim.cmd.colorscheme 'gruvbox-material'
|
||||||
|
-- end,
|
||||||
'catppuccin/nvim',
|
'catppuccin/nvim',
|
||||||
name = 'catppuccin',
|
name = 'catppuccin',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
require('catppuccin').setup {
|
require('catppuccin').setup {
|
||||||
flavour = 'mocha',
|
flavour = 'mocha',
|
||||||
|
transparent_background = true,
|
||||||
}
|
}
|
||||||
vim.cmd 'colorscheme catppuccin'
|
vim.cmd 'colorscheme catppuccin'
|
||||||
end,
|
end,
|
||||||
|
|
@ -882,6 +906,13 @@ require('lazy').setup({
|
||||||
-- }
|
-- }
|
||||||
-- vim.cmd 'colorscheme kanagawa-dragon'
|
-- vim.cmd 'colorscheme kanagawa-dragon'
|
||||||
-- end,
|
-- end,
|
||||||
|
--'zenbones-theme/zenbones.nvim',
|
||||||
|
--dependencies = 'rktjmp/lush.nvim',
|
||||||
|
--lazy = false,
|
||||||
|
--priority = 1000,
|
||||||
|
--config = function()
|
||||||
|
-- vim.cmd 'colorscheme zenbones'
|
||||||
|
--end,
|
||||||
-- 'vague2k/vague.nvim',
|
-- 'vague2k/vague.nvim',
|
||||||
-- priority = 1000,
|
-- priority = 1000,
|
||||||
-- name = 'vague',
|
-- name = 'vague',
|
||||||
|
|
@ -960,45 +991,61 @@ require('lazy').setup({
|
||||||
lazy = false,
|
lazy = false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'mikavilpas/yazi.nvim',
|
'stevearc/oil.nvim',
|
||||||
event = 'VeryLazy',
|
---@module 'oil'
|
||||||
dependencies = {
|
---@type oil.SetupOpts
|
||||||
'folke/snacks.nvim',
|
opts = {},
|
||||||
},
|
-- Optional dependencies
|
||||||
keys = {
|
dependencies = { { 'echasnovski/mini.icons', opts = {} } },
|
||||||
-- 👇 in this section, choose your own keymappings!
|
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
|
||||||
{
|
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
|
||||||
'<leader>-',
|
lazy = false,
|
||||||
mode = { 'n', 'v' },
|
config = function()
|
||||||
'<cmd>Yazi<cr>',
|
require('oil').setup {
|
||||||
desc = 'Open yazi at the current file',
|
vim.keymap.set('n', '-', '<CMD>Oil<CR>', { desc = 'Open parent directory' }),
|
||||||
},
|
}
|
||||||
{
|
|
||||||
-- Open in the current working directory
|
|
||||||
'<leader>cw',
|
|
||||||
'<cmd>Yazi cwd<cr>',
|
|
||||||
desc = "Open the file manager in nvim's working directory",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'<c-up>',
|
|
||||||
'<cmd>Yazi toggle<cr>',
|
|
||||||
desc = 'Resume the last yazi session',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
-- if you want to open yazi instead of netrw, see below for more info
|
|
||||||
open_for_directories = false,
|
|
||||||
keymaps = {
|
|
||||||
show_help = '~',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- 👇 if you use `open_for_directories=true`, this is recommended
|
|
||||||
init = function()
|
|
||||||
-- More details: https://github.com/mikavilpas/yazi.nvim/issues/802
|
|
||||||
-- vim.g.loaded_netrw = 1
|
|
||||||
vim.g.loaded_netrwPlugin = 1
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
--{
|
||||||
|
-- 'mikavilpas/yazi.nvim',
|
||||||
|
-- event = 'VeryLazy',
|
||||||
|
-- dependencies = {
|
||||||
|
-- 'folke/snacks.nvim',
|
||||||
|
-- },
|
||||||
|
-- keys = {
|
||||||
|
-- -- 👇 in this section, choose your own keymappings!
|
||||||
|
-- {
|
||||||
|
-- '<leader>-',
|
||||||
|
-- mode = { 'n', 'v' },
|
||||||
|
-- '<cmd>Yazi<cr>',
|
||||||
|
-- desc = 'Open yazi at the current file',
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- -- Open in the current working directory
|
||||||
|
-- '<leader>cw',
|
||||||
|
-- '<cmd>Yazi cwd<cr>',
|
||||||
|
-- desc = "Open the file manager in nvim's working directory",
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- '<c-up>',
|
||||||
|
-- '<cmd>Yazi toggle<cr>',
|
||||||
|
-- desc = 'Resume the last yazi session',
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- opts = {
|
||||||
|
-- -- if you want to open yazi instead of netrw, see below for more info
|
||||||
|
-- open_for_directories = false,
|
||||||
|
-- keymaps = {
|
||||||
|
-- show_help = '~',
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- -- 👇 if you use `open_for_directories=true`, this is recommended
|
||||||
|
-- init = function()
|
||||||
|
-- -- More details: https://github.com/mikavilpas/yazi.nvim/issues/802
|
||||||
|
-- -- vim.g.loaded_netrw = 1
|
||||||
|
-- vim.g.loaded_netrwPlugin = 1
|
||||||
|
-- end,
|
||||||
|
--},
|
||||||
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
-- The following comments only work if you have downloaded the kickstart repo, not just copy pasted the
|
||||||
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
-- init.lua. If you want these files, they are in the repository, so you can just download them and
|
||||||
-- place them in the correct locations.
|
-- place them in the correct locations.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue