Skip to content

Commit

Permalink
update docs to fix #152
Browse files Browse the repository at this point in the history
  • Loading branch information
Feel-ix-343 committed Aug 20, 2024
1 parent 570144f commit be69c06
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions docs/Markdown Oxide Docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
```
Expand Down

0 comments on commit be69c06

Please sign in to comment.