|
|
|
@ -9,9 +9,15 @@ M.lsp = require("zk.lsp")
|
|
|
|
|
|
|
|
|
|
function M.setup(options)
|
|
|
|
|
config.options = vim.tbl_deep_extend("force", config.defaults, options or {})
|
|
|
|
|
|
|
|
|
|
if config.options.lsp.auto_attach.enabled then
|
|
|
|
|
util.setup_lsp_auto_attach()
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if config.options.create_user_commands then
|
|
|
|
|
vim.cmd("command! ZkIndex lua require('zk').index()")
|
|
|
|
|
vim.cmd("command! -nargs=? ZkNew lua require('zk').new(nil, { dir = [=[<args>]=]})")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- Commands
|
|
|
|
@ -28,7 +34,4 @@ function M.new(path, args)
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
vim.cmd("command! ZkIndex lua require('zk').index()")
|
|
|
|
|
vim.cmd("command! -nargs=? ZkNew lua require('zk').new(nil, { dir = [=[<args>]=]})")
|
|
|
|
|
|
|
|
|
|
return M
|
|
|
|
|