Simplify markdown/quarto config with vim-pencil plugin#84
Merged
michaelbarton merged 6 commits intomasterfrom Mar 12, 2026
Merged
Simplify markdown/quarto config with vim-pencil plugin#84michaelbarton merged 6 commits intomasterfrom
michaelbarton merged 6 commits intomasterfrom
Conversation
Otter.nvim was feeding R language server completions into the prose/markdown areas of .qmd files. Disable otter's completion source so the autocomplete popup doesn't appear when writing text outside code chunks. https://claude.ai/code/session_01HBreTNcQgKZrD7azocwiaD
R is unused — all qmd code sections use Python. Removes the LazyVim R language extra, the R.nvim plugin (and its build workaround), and the R entry from conform's injected formatter config. https://claude.ai/code/session_01HBreTNcQgKZrD7azocwiaD
Unused — remove JS treesitter parser and JS/TS entries from conform's injected formatter config. https://claude.ai/code/session_01HBreTNcQgKZrD7azocwiaD
Replace the tree-sitter-rout clone step (no longer needed after removing R support) with a Lazy clean step to remove unused plugin files during setup. https://claude.ai/code/session_01HBreTNcQgKZrD7azocwiaD
- Remove html treesitter parser (unused) - Remove pyright from Ansible venv (already installed via Mason by LazyVim) - Clean up ftplugin/markdown.lua: remove vim-markdown plugin globals (plugin not installed), remove redundant BufWinEnter autocmd that stacked on every buffer load, use opt_local for folding/conceal instead https://claude.ai/code/session_01HBreTNcQgKZrD7azocwiaD
Replace manual formatoptions/wrap config with vim-pencil in hard wrap mode. This gives reliable prose wrapping that understands markdown structures (lists, blockquotes, code blocks) without needing to manually configure formatoptions. - Add pencil.lua plugin config (hard wrap, tw=80, autoformat) - Simplify markdown ftplugin: PencilHard replaces formatoptions - Simplify quarto ftplugin: PencilHard replaces manual soft wrap, remove unused R-mode variables https://claude.ai/code/session_01HBreTNcQgKZrD7azocwiaD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactored markdown and quarto filetype configurations to use the vim-pencil plugin for text formatting, removing manual configuration of formatting options and text wrapping behavior. Also removed R language support and cleaned up unused plugin configurations.
Key Changes
nvim/lua/plugins/pencil.lua): New plugin configuration with hard wrap mode, 80 character textwidth, and autoformat enabled for markdown, quarto, and vimwiki filetypesnvim/ftplugin/markdown.lua): Replaced 28 lines of manual formatting options (formatoptions, textwidth, formatlistpat, etc.) with a singlePencilHardcommand call, keeping only tab/indent settingsnvim/ftplugin/quarto.lua): Removed manual wrap/linebreak settings and replaced withPencilHardcommand; removed unused buffer variablesnvim/lua/plugins/quarto.lua): Added opts to disable completion in both quarto-nvim and otter.nvim pluginsansible/tasks/neovim.yml): Removed pyright dependency and replaced R.nvim tree-sitter workaround task with a simpleLazy! cleancommandImplementation Details
The vim-pencil plugin consolidates text formatting behavior that was previously scattered across multiple configuration files. The
PencilHardcommand applies consistent hard-wrap formatting with proper indentation and word-boundary wrapping, eliminating the need for manual vim option configuration.https://claude.ai/code/session_01HBreTNcQgKZrD7azocwiaD