From a4947fe4cf2d1983bd3f3961c19132ece7bd583b Mon Sep 17 00:00:00 2001 From: kalmenn Date: Mon, 18 Dec 2023 00:25:56 +0100 Subject: [PATCH] nvim: added a basic config for feline and gitsigns --- .config/nvim/lazy-lock.json | 2 ++ .config/nvim/lua/plugins/feline.lua | 11 +++++++++++ .config/nvim/lua/plugins/gitsigns.lua | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 .config/nvim/lua/plugins/feline.lua create mode 100644 .config/nvim/lua/plugins/gitsigns.lua diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index e3be5fc..08cda45 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -1,5 +1,7 @@ { "fd": { "branch": "master", "commit": "00b64f3ccbfb832ef744bb42bbdfabaf929b5ee2" }, + "feline.nvim": { "branch": "main", "commit": "a6bebd903e84d5ce0e97c597e0ca85cd24109002" }, + "gitsigns.nvim": { "branch": "main", "commit": "d195f0c35ced5174d3ecce1c4c8ebb3b5bc23fa9" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "230ff118613fa07138ba579b89d13ec2201530b9" }, "nui.nvim": { "branch": "main", "commit": "c9b4de623d19a85b353ff70d2ae9c77143abe69c" }, diff --git a/.config/nvim/lua/plugins/feline.lua b/.config/nvim/lua/plugins/feline.lua new file mode 100644 index 0000000..288bd17 --- /dev/null +++ b/.config/nvim/lua/plugins/feline.lua @@ -0,0 +1,11 @@ +return { + 'freddiehaddad/feline.nvim', + opts = {}, + config = function(_, opts) + require('feline').setup() + -- require('feline').winbar.setup() -- to use winbar + -- require('feline').statuscolumn.setup() -- to use statuscolumn + + -- require('feline').use_theme() -- to use a custom theme + end +} diff --git a/.config/nvim/lua/plugins/gitsigns.lua b/.config/nvim/lua/plugins/gitsigns.lua new file mode 100644 index 0000000..3adbda8 --- /dev/null +++ b/.config/nvim/lua/plugins/gitsigns.lua @@ -0,0 +1,11 @@ +return { + "lewis6991/gitsigns.nvim", + config = function() + require("gitsigns").setup({ + current_line_blame = true, + yadm = { + enable = true, + }, + }) + end +}