Skip to content

Commit

Permalink
feat: add obsidian.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcosta committed Oct 4, 2024
1 parent b9668bb commit 8dfc8f7
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 5 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,22 @@
url = "github:nvim-tree/nvim-web-devicons";
flake = false;
};
octo = {
url = "github:pwntester/octo.nvim";
obsidian-nvim = {
url = "github:epwalsh/obsidian.nvim";
flake = false;
};
render-markdown = {
url = "github:MeanderingProgrammer/render-markdown.nvim";
octo = {
url = "github:pwntester/octo.nvim";
flake = false;
};
plenary = {
url = "github:nvim-lua/plenary.nvim";
flake = false;
};
render-markdown = {
url = "github:MeanderingProgrammer/render-markdown.nvim";
flake = false;
};
rustacean = {
url = "github:mrcjkb/rustaceanvim";
flake = false;
Expand Down
1 change: 1 addition & 0 deletions lib/lua/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ M.finish = function()
vim.opt.splitkeep = "screen"
vim.opt.tabstop = 2
vim.opt.termguicolors = true
vim.opt.conceallevel = 2

-- Set custom filetypes for some specific files
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
Expand Down
1 change: 1 addition & 0 deletions plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ symlinkJoin rec {
(importPlugin ./neo-tree)
(importPlugin ./neogit)
(importPlugin ./nvim-web-devicons)
(importPlugin ./obsidian)
(importPlugin ./octo)
(importPlugin ./render-markdown)
(importPlugin ./rustacean)
Expand Down
9 changes: 9 additions & 0 deletions plugins/obsidian/configuration.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require("obsidian").setup({
notes_subdir = "notes",
workspaces = {
{
name = "personal",
path = "~/Notes",
},
},
})
21 changes: 21 additions & 0 deletions plugins/obsidian/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
inputs,
mkPlugin,
...
}:
let
inherit (builtins) readFile;
in
mkPlugin {
name = "obsidian-nvim";
src = inputs.obsidian-nvim;

depends = [
"cmp"
"treesitter"
"plenary"
"telescope"
];

config = readFile ./configuration.lua;
}
1 change: 0 additions & 1 deletion plugins/treesitter/configuration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ require("nvim-treesitter.configs").setup({
"vimdoc",
"yaml",
},

sync_install = false,
auto_install = true,
highlight = { enable = true },
Expand Down

0 comments on commit 8dfc8f7

Please sign in to comment.