diff --git a/docs/Markdown Oxide Docs/README.md b/docs/Markdown Oxide Docs/README.md index 8740cc1d..dce352fa 100644 --- a/docs/Markdown Oxide Docs/README.md +++ b/docs/Markdown Oxide Docs/README.md @@ -73,16 +73,20 @@ Set up the PKM for your text editor... -- An example nvim-lspconfig capabilities setting local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()) - -- Ensure that dynamicRegistration is enabled! This allows the LS to take into account actions like the - -- Create Unresolved File code action, resolving completions for unindexed code blocks, ... - capabilities.workspace = { - didChangeWatchedFiles = { - dynamicRegistration = true, - }, - } - require("lspconfig").markdown_oxide.setup({ - capabilities = capabilities, -- again, ensure that capabilities.workspace.didChangeWatchedFiles.dynamicRegistration = true + -- Ensure that dynamicRegistration is enabled! This allows the LS to take into account actions like the + -- Create Unresolved File code action, resolving completions for unindexed code blocks, ... + capabilities = vim.tbl_deep_extend( + 'force', + capabilities, + { + workspace = { + didChangeWatchedFiles = { + dynamicRegistration = true, + }, + }, + } + ), on_attach = on_attach -- configure your on attach config }) ```