diff --git a/flake.nix b/flake.nix index 57e5a96..352b4b6 100644 --- a/flake.nix +++ b/flake.nix @@ -175,6 +175,7 @@ lazydev-nvim plenary-nvim obsidian-nvim + blink-compat # colorschemes rose-pine diff --git a/lua/plugins/blink-cmp.lua b/lua/plugins/blink-cmp.lua index 592c8c3..c1a2cea 100644 --- a/lua/plugins/blink-cmp.lua +++ b/lua/plugins/blink-cmp.lua @@ -3,6 +3,7 @@ return { event = "BufEnter", after = function() require("lz.n").trigger_load("blink-ripgrep") + require("lz.n").trigger_load("blink.compat") require("blink.cmp").setup({ keymap = { @@ -21,7 +22,7 @@ return { default = { "lsp", "path", "snippets", "buffer" }, per_filetype = { lua = { "lazydev", "lsp", "path", "snippets", "buffer" }, - markdown = { "lsp", "path", "snippets", "buffer", "markdown" }, + markdown = { "lsp", "snippets", "obsidian", "obsidian_new", "obsidian_tags", "path", "buffer", "markdown" }, }, providers = { ripgrep = { @@ -34,6 +35,18 @@ return { score_offset = 100, }, markdown = { name = "RenderMarkdown", module = "render-markdown.integ.blink" }, + obsidian = { + name = "obsidian", + module = "blink.compat.source", + }, + obsidian_new = { + name = "obsidian_new", + module = "blink.compat.source", + }, + obsidian_tags = { + name = "obsidian_tags", + module = "blink.compat.source", + }, }, }, completion = { diff --git a/lua/plugins/lz-spec.lua b/lua/plugins/lz-spec.lua index 3ea0ad7..1107454 100644 --- a/lua/plugins/lz-spec.lua +++ b/lua/plugins/lz-spec.lua @@ -231,6 +231,7 @@ return { end, }, { "blink-ripgrep", lazy = true }, + { "blink.compat", lazy = true }, { "lazydev.nvim", filetypes = { "lua" }, diff --git a/lua/plugins/obsidian.lua b/lua/plugins/obsidian.lua index b95d951..eae4469 100644 --- a/lua/plugins/obsidian.lua +++ b/lua/plugins/obsidian.lua @@ -36,10 +36,12 @@ return { local workspaces = get_workspaces() if #workspaces > 0 then - require("obsidian").setup({ + local opts = { ui = { enable = false }, workspaces = workspaces, - }) + completion = { nvim_cmp = false }, + } + require("obsidian").setup(opts) end end, }