summaryrefslogtreecommitdiff
path: root/config/nvim/lua/plugins/zk.lua
blob: 1640b7729738a999a9c2a270b7fc2d5ca5a975b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
return {
	"zk-org/zk-nvim",
	version = "v0.3.0",
	config = function()
		require("zk").setup({
			picker = "telescope",

			lsp = {
				-- `config` is passed to `vim.lsp.start(config)`
				config = {
					name = "zk",
					cmd = { "zk", "lsp" },
					filetypes = { "markdown" },
					-- on_attach = ...
					-- etc, see `:h vim.lsp.start()`
				},

				-- automatically attach buffers in a zk notebook that match the given filetypes
				auto_attach = {
					enabled = true,
					filetypes = { "markdown" }, -- moved to lsp.config above
				},
			},
		})
	end,
}