Remove obsidian plugin and instead add Neorg
This commit is contained in:
parent
d707293341
commit
657f9cb7e1
2 changed files with 4 additions and 28 deletions
4
home/.config/nvim/lua/plugs/neorg.lua
Normal file
4
home/.config/nvim/lua/plugs/neorg.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
return {
|
||||
"nvim-neorg/neorg",
|
||||
opts = {}
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*",
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
config = function()
|
||||
local scndbrn_path = vim.fn.has("unixmac") == 1 and
|
||||
"~/rp4-data/obsidian-vault/scndbrn" or
|
||||
"/mnt/rp4-data/obsidian-vault/scndbrn"
|
||||
|
||||
local is_vault_accessible = scndbrn_path == nil or vim.fn.isdirectory(scndbrn_path) == 0
|
||||
if is_vault_accessible then
|
||||
return
|
||||
end
|
||||
|
||||
require("obsidian").setup({
|
||||
workspaces = {
|
||||
{
|
||||
name = "scndbrn",
|
||||
path = scndbrn_path,
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue