2022-08-07 15:04:57 +08:00
|
|
|
require("zk").setup({
|
2022-08-07 15:43:53 +08:00
|
|
|
-- can be "telescope", "fzf" or "select" (`vim.ui.select`)
|
|
|
|
-- it's recommended to use "telescope" or "fzf"
|
|
|
|
picker = "telescope",
|
2022-08-07 15:04:57 +08:00
|
|
|
|
2022-08-07 15:43:53 +08:00
|
|
|
lsp = {
|
|
|
|
-- `config` is passed to `vim.lsp.start_client(config)`
|
|
|
|
config = {
|
|
|
|
cmd = {"zk", "lsp"},
|
|
|
|
name = "zk"
|
|
|
|
-- on_attach = ...
|
|
|
|
-- etc, see `:h vim.lsp.start_client()`
|
|
|
|
},
|
2022-08-07 15:04:57 +08:00
|
|
|
|
2022-08-07 15:43:53 +08:00
|
|
|
-- automatically attach buffers in a zk notebook that match the given filetypes
|
|
|
|
auto_attach = {enabled = true, filetypes = {"markdown"}}
|
|
|
|
}
|
2022-08-07 15:04:57 +08:00
|
|
|
})
|