zk + custom diagnostics filters
parent
57f173cf4d
commit
df39230f58
@ -0,0 +1,29 @@
|
||||
local M = {}
|
||||
|
||||
local opts = {
|
||||
-- can be "telescope", "fzf" or "select" (`vim.ui.select`)
|
||||
-- it's recommended to use "telescope" or "fzf"
|
||||
picker = "select",
|
||||
|
||||
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()`
|
||||
},
|
||||
|
||||
-- automatically attach buffers in a zk notebook that match the given filetypes
|
||||
auto_attach = {
|
||||
enabled = true,
|
||||
filetypes = { "markdown" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
M.setup = function()
|
||||
require("zk").setup(opts)
|
||||
end
|
||||
|
||||
return M
|
Loading…
Reference in New Issue