diff --git a/modules/coding/editor/neovim/nvim/lua/core/options.lua b/modules/coding/editor/neovim/nvim/lua/core/options.lua index ffecfbf..1363321 100644 --- a/modules/coding/editor/neovim/nvim/lua/core/options.lua +++ b/modules/coding/editor/neovim/nvim/lua/core/options.lua @@ -34,6 +34,8 @@ opt.completeopt = "" opt.exrc = true +opt.conceallevel = 2 + opt.autoread = true vim.g.autoread = true diff --git a/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua b/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua index 52d7b68..71af92f 100644 --- a/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua +++ b/modules/coding/editor/neovim/nvim/lua/plugins/plugins-setup.lua @@ -335,6 +335,25 @@ local plugins = { }, name = "registers", }, + + { + "epwalsh/obsidian.nvim", + version = "*", + enabled = false, + lazy = true, + ft = "markdown", + dependencies = { "nvim-lua/plenary.nvim" }, + opts = { + workspaces = { + { + name = "dynamic", + path = function() + return assert(vim.fs.dirname(vim.api.nvim_buf_get_name(0))) + end, + }, + }, + }, + }, } require("lazy").setup(plugins, {}) diff --git a/modules/desktop/all.nix b/modules/desktop/all.nix index 56473b0..3179098 100644 --- a/modules/desktop/all.nix +++ b/modules/desktop/all.nix @@ -17,6 +17,7 @@ in wm.all.enable = true; style.enable = true; wine.enable = true; + obsidian.enable = true; }; }; } diff --git a/modules/desktop/obsidian.nix b/modules/desktop/obsidian.nix new file mode 100644 index 0000000..6e7a8a4 --- /dev/null +++ b/modules/desktop/obsidian.nix @@ -0,0 +1,23 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.my.desktop.obsidian; +in +{ + options.my.desktop.obsidian = { + enable = lib.mkEnableOption "obsidian"; + }; + + config = lib.mkIf cfg.enable { + my.hm.home.packages = with pkgs; [ + obsidian + ]; + my.persist.homeDirs = [ + ".config/obsidian" + ]; + }; +}