From 042f8513b80ea21f9aed163518d7a1043b7b7364 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Mon, 27 May 2024 19:48:51 -0400 Subject: [PATCH] fix(zk-nvim): update to new organization and setup --- .../note-taking/zk-nvim/init.lua | 30 ++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/lua/astrocommunity/note-taking/zk-nvim/init.lua b/lua/astrocommunity/note-taking/zk-nvim/init.lua index ce5bc0dfe..6ede29ff9 100644 --- a/lua/astrocommunity/note-taking/zk-nvim/init.lua +++ b/lua/astrocommunity/note-taking/zk-nvim/init.lua @@ -1,11 +1,33 @@ return { { - "mickael-menu/zk-nvim", - opts = { - picker = "telescope", + "zk-org/zk-nvim", + main = "zk", + event = "User AstroFile", + cmd = { + "ZkIndex", + "ZkNew", + "ZkNewFromTitleSelection", + "ZkNewFromContentSelection", + "ZkCd", + "ZkNotes", + "ZkBacklinks", + "ZkLinks", + "ZkInsertLinkAtSelection", + "ZkInsertLink", + "ZkMatch", + "ZkTags", }, + dependencies = { "AstroNvim/astrolsp", opts = { handlers = { zk = function() end } } }, + opts = function() + local lsp_config = require("astrolsp").lsp_opts "zk" + return { + lsp = { + config = lsp_config, + auto_attach = { filetypes = lsp_config.filetypes }, + }, + } + end, }, - { "williamboman/mason-lspconfig.nvim", opts = function(_, opts)