From a7d6bcbf964caf182d1667913cc01b643a22b73f Mon Sep 17 00:00:00 2001 From: fm39hz-workstation Date: Mon, 13 May 2024 12:49:19 +0700 Subject: [PATCH] style: config neovim visual - everforest theme - git blame inline --- lazy-lock.json | 2 ++ lua/config/keymaps.lua | 3 +++ lua/plugins/everforest-nvim.lua | 19 +++++++++++++++++++ lua/plugins/git-blame.lua | 4 ++++ 4 files changed, 28 insertions(+) create mode 100644 lua/plugins/everforest-nvim.lua create mode 100644 lua/plugins/git-blame.lua diff --git a/lazy-lock.json b/lazy-lock.json index 1b0c90f..f681036 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -18,8 +18,10 @@ "dial.nvim": { "branch": "master", "commit": "27eb570085db2ef44bff4f620d3806039184651c" }, "dressing.nvim": { "branch": "master", "commit": "5162edb1442a729a885c45455a07e9a89058be2f" }, "edgy.nvim": { "branch": "main", "commit": "de79b7d92a5979cd71a9a1d8b6282515345e5055" }, + "everforest-nvim": { "branch": "main", "commit": "5e0e32a569fb464911342f0d421721cc1c94cf25" }, "flit.nvim": { "branch": "main", "commit": "56490317983218b09698f8c960c3669958b12b32" }, "friendly-snippets": { "branch": "main", "commit": "3e9a3f5a0cfcef1741e352c37bda4e82e5eb846a" }, + "git-blame.nvim": { "branch": "master", "commit": "fb84fad97cd4b51caee3c865e8a33a0d413b77a8" }, "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, "headlines.nvim": { "branch": "master", "commit": "618ef1b2502c565c82254ef7d5b04402194d9ce3" }, "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" }, diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index c8d9065..09ed173 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -12,3 +12,6 @@ map("n", "op", "Oil", { desc = "Open parent directory" }) -- Markdown configs map("n", "ct", ":lua require('toggle-checkbox').toggle()", { desc = "Toggle Checkbox" }) + +-- Git configs +map("n", "gb", "GitBlameToggle", { desc = "Toggle Git Blame" }) diff --git a/lua/plugins/everforest-nvim.lua b/lua/plugins/everforest-nvim.lua new file mode 100644 index 0000000..1cffeb6 --- /dev/null +++ b/lua/plugins/everforest-nvim.lua @@ -0,0 +1,19 @@ +return { + { + "neanias/everforest-nvim", + opts = { + priority = 1000, + }, + config = function() + require("everforest").setup({ + -- background = "soft", + }) + end, + }, + { + "LazyVim/LazyVim", + opts = { + colorscheme = "everforest", + }, + }, +} diff --git a/lua/plugins/git-blame.lua b/lua/plugins/git-blame.lua new file mode 100644 index 0000000..dab915e --- /dev/null +++ b/lua/plugins/git-blame.lua @@ -0,0 +1,4 @@ +return { + "f-person/git-blame.nvim", + opts = {}, +}