backup
This commit is contained in:
parent
66b4e1cf52
commit
d17ee40a70
3 changed files with 70 additions and 1 deletions
32
lua/configs/noice.lua
Normal file
32
lua/configs/noice.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
require("noice").setup({
|
||||
views = {
|
||||
cmdline_popup = {
|
||||
position = {
|
||||
row = 5,
|
||||
col = "50%",
|
||||
},
|
||||
size = {
|
||||
width = 60,
|
||||
height = "auto",
|
||||
},
|
||||
},
|
||||
popupmenu = {
|
||||
relative = "editor",
|
||||
position = {
|
||||
row = 8,
|
||||
col = "50%",
|
||||
},
|
||||
size = {
|
||||
width = 60,
|
||||
height = 10,
|
||||
},
|
||||
border = {
|
||||
style = "rounded",
|
||||
padding = { 0, 1 },
|
||||
},
|
||||
win_options = {
|
||||
winhighlight = { Normal = "Normal", FloatBorder = "DiagnosticInfo" },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
|
@ -8,7 +8,7 @@ local map = vim.keymap.set
|
|||
map("i", "jk", "<ESC>")
|
||||
map("i", "<sc-L>", "<Del>")
|
||||
|
||||
map("n", "<leader>l", ":tab term lazygit<CR>:set nonu nornu<CR>A")
|
||||
-- map("n", "<leader>l", ":tab term lazygit<CR>:set nonu nornu<CR>A")
|
||||
|
||||
|
||||
|
||||
|
@ -20,6 +20,8 @@ vim.api.nvim_create_autocmd({"User"}, {
|
|||
|
||||
map("n", "[h", gs.prev_hunk)
|
||||
map("n", "]h", gs.next_hunk)
|
||||
map("n", "<leader>gd", gs.preview_hunk)
|
||||
map("n", "<leader>gu", gs.reset_hunk)
|
||||
end
|
||||
end
|
||||
})
|
||||
|
|
|
@ -1,4 +1,39 @@
|
|||
return {
|
||||
{
|
||||
"kdheepak/lazygit.nvim",
|
||||
cmd = {
|
||||
"LazyGit",
|
||||
"LazyGitConfig",
|
||||
"LazyGitCurrentFile",
|
||||
"LazyGitFilter",
|
||||
"LazyGitFilterCurrentFile",
|
||||
},
|
||||
-- optional for floating window border decoration
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||
-- order to load the plugin when the command is run for the first time
|
||||
keys = {
|
||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- add any options here
|
||||
},
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"rcarriga/nvim-notify",
|
||||
},
|
||||
config = function()
|
||||
require "configs.noice"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"majutsushi/tagbar",
|
||||
lazy = false,
|
||||
|
|
Loading…
Reference in a new issue