Started rewriting my nixos config
This commit is contained in:
parent
f9f3b19299
commit
1b17dc6cf3
186 changed files with 135 additions and 7404 deletions
dotfiles/neovim/lua/my/plugins
|
@ -1,40 +0,0 @@
|
|||
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
|
||||
|
||||
for _, buf in pairs(buffers) do
|
||||
if vim.api.nvim_buf_is_loaded(buf) and vim.bo[buf].filetype == "mind" then
|
||||
should_open = false
|
||||
vim.cmd("bd " .. buf)
|
||||
end
|
||||
end
|
||||
|
||||
if should_open then
|
||||
mind.open_main()
|
||||
end
|
||||
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