Almost rewrote my entire config
This commit is contained in:
parent
47d704ad01
commit
c5b355601e
51 changed files with 973 additions and 870 deletions
dotfiles/neovim/lua/my/plugins
|
@ -1,18 +1,12 @@
|
|||
local mind = require("mind")
|
||||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
mind.setup({
|
||||
persistence = {
|
||||
state_path = "~/Mind/mind.json",
|
||||
data_dir = "~/Mind/data"
|
||||
},
|
||||
ui = {
|
||||
width = 50
|
||||
}
|
||||
})
|
||||
local M = {
|
||||
"phaazon/mind.nvim", -- Organize shit as trees
|
||||
keys = "<leader>m",
|
||||
}
|
||||
|
||||
function M.init()
|
||||
vim.keymap.set("n", "<leader>m", function()
|
||||
local mind = require("mind")
|
||||
|
||||
local buffers = vim.api.nvim_list_bufs()
|
||||
local should_open = true
|
||||
|
||||
|
@ -26,7 +20,21 @@ function M.setup()
|
|||
if should_open then
|
||||
mind.open_main()
|
||||
end
|
||||
end, { desc = "Toggle mind panel" })
|
||||
end, { desc = "[M]ind panel" })
|
||||
end
|
||||
|
||||
function M.config()
|
||||
local mind = require("mind")
|
||||
|
||||
mind.setup({
|
||||
persistence = {
|
||||
state_path = "~/Mind/mind.json",
|
||||
data_dir = "~/Mind/data",
|
||||
},
|
||||
ui = {
|
||||
width = 50,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue