nvim: add ui

This commit is contained in:
Rasyidan Akbar F. 2026-03-16 07:00:44 +07:00
commit 2de7c7613d
2 changed files with 69 additions and 51 deletions

View file

@ -6,6 +6,7 @@
"gitsigns.nvim": { "branch": "main", "commit": "7c4faa3540d0781a28588cafbd4dd187a28ac6e3" }, "gitsigns.nvim": { "branch": "main", "commit": "7c4faa3540d0781a28588cafbd4dd187a28ac6e3" },
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
"lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" }, "lazydev.nvim": { "branch": "main", "commit": "5231c62aa83c2f8dc8e7ba957aa77098cda1257d" },
"lazygit.nvim": { "branch": "main", "commit": "a04ad0dbc725134edbee3a5eea29290976695357" },
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
"nvim-lint": { "branch": "master", "commit": "606b823a57b027502a9ae00978ebf4f5d5158098" }, "nvim-lint": { "branch": "master", "commit": "606b823a57b027502a9ae00978ebf4f5d5158098" },
"nvim-lspconfig": { "branch": "master", "commit": "d8bf4c47385340ab2029402201d4d7c9f99f437a" }, "nvim-lspconfig": { "branch": "master", "commit": "d8bf4c47385340ab2029402201d4d7c9f99f437a" },

View file

@ -1,58 +1,75 @@
return { return {
{ {
"catppuccin/nvim", "catppuccin/nvim",
name = "catppuccin", name = "catppuccin",
lazy = false, lazy = false,
priority = 1000, priority = 1000,
opts = { opts = {
flavour = "mocha", flavour = "mocha",
integrations = { integrations = {
gitsigns = true, gitsigns = true,
telescope = true, telescope = true,
which_key = true, which_key = true,
cmp = true, cmp = true,
treesitter = true, treesitter = true,
native_lsp = { native_lsp = {
enabled = true, enabled = true,
}, },
}, },
}, },
config = function(_, opts) config = function(_, opts)
require("catppuccin").setup(opts) require("catppuccin").setup(opts)
vim.cmd.colorscheme("catppuccin") vim.cmd.colorscheme("catppuccin")
end, end,
}, },
{ "nvim-tree/nvim-web-devicons", lazy = true }, { "nvim-tree/nvim-web-devicons", lazy = true },
{ {
"folke/which-key.nvim", "folke/which-key.nvim",
event = "VeryLazy", event = "VeryLazy",
opts = {}, opts = {},
}, },
{ {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
event = { "BufReadPre", "BufNewFile" }, event = { "BufReadPre", "BufNewFile" },
opts = { opts = {
on_attach = function(buffer) on_attach = function(buffer)
local gs = package.loaded.gitsigns local gs = package.loaded.gitsigns
local map = function(mode, lhs, rhs, desc) local map = function(mode, lhs, rhs, desc)
vim.keymap.set(mode, lhs, rhs, { buffer = buffer, desc = desc }) vim.keymap.set(mode, lhs, rhs, { buffer = buffer, desc = desc })
end end
map("n", "]h", gs.next_hunk, "Next hunk") map("n", "]h", gs.next_hunk, "Next hunk")
map("n", "[h", gs.prev_hunk, "Previous hunk") map("n", "[h", gs.prev_hunk, "Previous hunk")
map("n", "<leader>gp", gs.preview_hunk, "Preview hunk") map("n", "<leader>gp", gs.preview_hunk, "Preview hunk")
map("n", "<leader>gr", gs.reset_hunk, "Reset hunk") map("n", "<leader>gr", gs.reset_hunk, "Reset hunk")
map("n", "<leader>gb", gs.blame_line, "Blame line") map("n", "<leader>gb", gs.blame_line, "Blame line")
end, end,
}, },
}, },
{ {
"numToStr/Comment.nvim", "kdheepak/lazygit.nvim",
event = "VeryLazy", cmd = {
opts = {}, "LazyGit",
}, "LazyGitConfig",
"LazyGitCurrentFile",
"LazyGitFilter",
"LazyGitFilterCurrentFile",
},
dependencies = {
"nvim-lua/plenary.nvim",
},
keys = {
{ "<leader>gg", "<cmd>LazyGit<cr>", desc = "Open LazyGit" },
},
},
{
"numToStr/Comment.nvim",
event = "VeryLazy",
opts = {},
},
} }