diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-19 21:34:06 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-19 21:34:06 -0500 |
commit | df24ad7acdffd68e0c25921c518875a6bd3ac4c3 (patch) | |
tree | 8c2dd2e227ba800422f4b51708776863d5429710 /lua | |
parent | 70e46cb880af1c201e184d9d50f88e0fc4b30c76 (diff) |
Use lf inside nvim
Diffstat (limited to 'lua')
-rw-r--r-- | lua/ben/plugins/blamer.lua | 28 | ||||
-rw-r--r-- | lua/ben/plugins/fern.lua | 19 | ||||
-rw-r--r-- | lua/ben/plugins/lf.lua | 12 | ||||
-rw-r--r-- | lua/ben/plugins/neorg.lua | 16 |
4 files changed, 41 insertions, 34 deletions
diff --git a/lua/ben/plugins/blamer.lua b/lua/ben/plugins/blamer.lua index 455db33..243a8a7 100644 --- a/lua/ben/plugins/blamer.lua +++ b/lua/ben/plugins/blamer.lua @@ -1,16 +1,16 @@ return { - -- Only load if on a compatible OS and git is installed - cond = function() - local goodOS = (vim.fn.has("linux") == 1) or (vim.fn.has("mac") == 1) - local hasGit = vim.fn.executable("git") == 1 - return goodOS and hasGit - end, - "APZelos/blamer.nvim", - config = function() - vim.g.blamer_enabled = 1 - vim.g.blamer_delay = 500 - vim.g.blamer_template = "<committer>, <committer-time> • <summary>" - vim.g.blamer_prefix = ">" - end, - cmd = { "BlamerToggle", "BlamerShow" }, + "APZelos/blamer.nvim", + -- Only load if on a compatible OS and git is installed + cond = function() + local goodOS = (vim.fn.has("linux") == 1) or (vim.fn.has("mac") == 1) + local hasGit = vim.fn.executable("git") == 1 + return goodOS and hasGit + end, + config = function() + vim.g.blamer_enabled = 1 + vim.g.blamer_delay = 500 + vim.g.blamer_template = "<committer>, <committer-time> • <summary>" + vim.g.blamer_prefix = ">" + end, + cmd = { "BlamerToggle", "BlamerShow" }, } diff --git a/lua/ben/plugins/fern.lua b/lua/ben/plugins/fern.lua deleted file mode 100644 index b120125..0000000 --- a/lua/ben/plugins/fern.lua +++ /dev/null @@ -1,19 +0,0 @@ -return { - "lambdalisue/fern.vim", - dependencies = { - "TheLeoP/fern-renderer-web-devicons.nvim", - "lambdalisue/fern-git-status.vim", - "lambdalisue/fern-hijack.vim", - "lambdalisue/fern-bookmark.vim", - "lambdalisue/fern-ssh", - }, - config = function() - vim.g["fern#renderer"] = "nvim-web-devicons" - -- Store bookmarks in $XDG_CONFIG_HOME/nvim/fern-bookmarks - vim.g["fern#scheme#bookmark#store#file"] = vim.fn.stdpath("config") .. "/fern-bookmarks" - end, - keys = { - { "<leader>fm", "<cmd>Fern -drawer .<cr>" }, - { "<leader>fb", "<cmd>Fern bookmark:///<cr>" }, - }, -} diff --git a/lua/ben/plugins/lf.lua b/lua/ben/plugins/lf.lua new file mode 100644 index 0000000..fc79cac --- /dev/null +++ b/lua/ben/plugins/lf.lua @@ -0,0 +1,12 @@ +return { + "lmburns/lf.nvim", + dependencies = { + { "akinsho/toggleterm.nvim", version = "*", config = true }, + }, + config = { + border = "rounded", + }, + keys = { + { "<leader>lf", "<cmd>Lf<cr>" }, + }, +} diff --git a/lua/ben/plugins/neorg.lua b/lua/ben/plugins/neorg.lua index 4e89973..ece2a53 100644 --- a/lua/ben/plugins/neorg.lua +++ b/lua/ben/plugins/neorg.lua @@ -9,7 +9,21 @@ return { require("neorg").setup({ load = { ["core.defaults"] = {}, -- Loads default behaviour - ["core.concealer"] = {}, -- Adds pretty icons to your documents + ["core.export"] = {}, -- Loads default behaviour + ["core.concealer"] = { + config = { + icons = { + heading = { + icons = { + "", + "", + "", + "", + }, + }, + }, + }, + }, -- Adds pretty icons to your documents ["core.integrations.telescope"] = {}, ["core.dirman"] = { -- Manages Neorg workspaces config = { |