Wrap markdown at 80 with a colour column guide
Hand-wrapping CLAUDE.md showed there was no visual guide for line length. textwidth makes gq reflow to 80 and colorcolumn marks column 81, markdown only so PHP is unaffected. The ftplugin directory is linked whole so later filetypes need no bootstrap change. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
34950b204a
commit
e08861b1c6
2 changed files with 6 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ test -d $HOME/.config/nvim/lua || mkdir -p $HOME/.config/nvim/lua
|
|||
test -L $HOME/.config/nvim/lua/config || ln -f -s $BASEDIR/neovim/config $HOME/.config/nvim/lua/config
|
||||
test -d $HOME/.config/nvim/lsp || mkdir -p $HOME/.config/nvim/lsp
|
||||
test -L $HOME/.config/nvim/lsp/phpactor.lua || ln -f -s $BASEDIR/neovim/lsp/phpactor.lua $HOME/.config/nvim/lsp/phpactor.lua
|
||||
test -d $HOME/.config/nvim/after || mkdir -p $HOME/.config/nvim/after
|
||||
test -L $HOME/.config/nvim/after/ftplugin || ln -f -s $BASEDIR/neovim/after/ftplugin $HOME/.config/nvim/after/ftplugin
|
||||
|
||||
# Claude Code statusline
|
||||
test -d $HOME/.claude || mkdir $HOME/.claude
|
||||
|
|
|
|||
4
neovim/after/ftplugin/markdown.lua
Normal file
4
neovim/after/ftplugin/markdown.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- Hard-wrap prose at 80, the markdownlint/prettier default. +1 puts the guide
|
||||
-- just past the limit, so a line touching it is still fine.
|
||||
vim.bo.textwidth = 80
|
||||
vim.wo.colorcolumn = '+1'
|
||||
Loading…
Reference in a new issue