add obsidian nvim plugin
currently disabled cuz it sucks
This commit is contained in:
parent
237f863adc
commit
235d3908a7
3 changed files with 37 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ return {
|
|||
javascriptreact = { "prettierd" },
|
||||
typescriptreact = { "prettierd" },
|
||||
go = { "gofumpt" },
|
||||
python = { "autopep8" },
|
||||
},
|
||||
format_on_save = function(bufnr)
|
||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||
|
|
|
|||
34
nvim/lua/juancwu/plugins/obsidian.lua
Normal file
34
nvim/lua/juancwu/plugins/obsidian.lua
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*", -- recommended, use latest release instead of latest commit
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
enabled = false,
|
||||
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
|
||||
-- event = {
|
||||
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
||||
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/**.md"
|
||||
-- "BufReadPre path/to/my-vault/**.md",
|
||||
-- "BufNewFile path/to/my-vault/**.md",
|
||||
-- },
|
||||
dependencies = {
|
||||
-- Required.
|
||||
"nvim-lua/plenary.nvim",
|
||||
|
||||
-- see below for full list of optional dependencies 👇
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "~/Documents/Obsidian Vault",
|
||||
},
|
||||
{
|
||||
name = "work",
|
||||
path = "~/vaults/work",
|
||||
},
|
||||
},
|
||||
|
||||
-- see below for full list of options 👇
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue