Add cord and obsidian plugins

This commit is contained in:
2025-02-04 00:52:36 -05:00
parent 7b991215e3
commit 1cd8e8b4be
3 changed files with 98 additions and 57 deletions

11
lua/plugins/cord.lua Normal file
View File

@@ -0,0 +1,11 @@
return {
"vyfor/cord.nvim",
build = ":Cord update",
opts = {
text = {
editing = "Editing a ${filetype} file",
viewing = "Viewing a ${filetype} file",
},
variables = true,
},
}

27
lua/plugins/obsidian.lua Normal file
View File

@@ -0,0 +1,27 @@
return {
"epwalsh/obsidian.nvim",
version = "*", -- recommended, use latest release instead of latest commit
lazy = true,
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"
-- refer to `:h file-pattern` for more examples
"BufReadPre /mnt/c/Users/tyler/notes/*.md",
"BufNewFile /mnt/c/Users/tyler/notes/*.md",
"BufReadPre " .. vim.fn.expand("~") .. "/notes/*.md",
"BufNewFile " .. vim.fn.expand("~") .. "/notes/*.md",
},
dependencies = {
"nvim-lua/plenary.nvim",
"hrsh7th/nvim-cmp",
"ibhagwan/fzf-lua",
},
opts = {
workspaces = {
{
name = "notes",
path = "~/notes",
},
},
},
}