feat(nvim): Markdown handling improvements

- marksman: Trimmed config file: removed comments, remove default
  settings
- fix: ftplugin for codelens: provide current buffer
- new: Add obsidian.nvim plugin to replace markdown-oxide lsp
This commit is contained in:
Pratik Tripathy
2025-11-22 23:38:42 +05:30
parent 8498a68797
commit b9efd12e47
4 changed files with 30 additions and 41 deletions

View File

@@ -1,36 +1,15 @@
[core]
markdown.file_extensions = ["md", "markdown"]
# Configures text sync protocol between the editor (LSP client)
# and Marksman (LSP server).
# Can be either 'full' or `incremental`:
# * full: the whole copy of a document is sent by the editor
# on every update,
# * incremental: only the changed parts are sent by
# the editor. This will result in less trafic between
# the editor and Marksman, but the overall performance
# impact is marginal.
# Defaults to `full` because the editors have bugs in incremental
# sync which result in slightly correpted state and are really hard
# to diagnose.
text_sync = "incremental"
# Use incremental resolution of project-wide references.
# This is much more efficient but is currently experimental
incremental_references = true
# For debugging only! Enables extra validation checks around
# incremental state updates. SIGNIFICANTLY IMPACTS PERFORMANCE
text_sync = "full"
title_from_heading = true
incremental_references = false
paranoid = false
[code_action]
# Enable/disable "Table of Contents" code action
toc.enable = true
# Enable/disable "Create missing linked file" code action
create_missing_file.enable = false
[completion]
# The style of wiki links completion.
# Other values include:
# * "file-stem" to complete using file name without an extension,
# * "file-path-stem" same as above but using file path.
wiki.style = "title-slug"
candidates = 50
wiki.style = "file-path-stem"