mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
feat(defaults): treat "•" as a list item prefix #24623
Problem: Nvim docs use "•" as a list item prefix but `gw{motion}` doesn't format such lists by default. Solution: Change the 'comments' option to include "fb:•" by default.
This commit is contained in:
@@ -151,6 +151,7 @@ The following changes to existing APIs or features add new behavior.
|
|||||||
option, which allows for rendering e.g., diagnostic severities differently.
|
option, which allows for rendering e.g., diagnostic severities differently.
|
||||||
|
|
||||||
• Defaults:
|
• Defaults:
|
||||||
|
• 'comments' includes "fb:•".
|
||||||
• 'shortmess' includes the "C" flag.
|
• 'shortmess' includes the "C" flag.
|
||||||
• Automatic linting of treesitter query files (see |ft-query-plugin|).
|
• Automatic linting of treesitter query files (see |ft-query-plugin|).
|
||||||
Can be disabled via: >lua
|
Can be disabled via: >lua
|
||||||
|
@@ -1374,7 +1374,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||||||
< Minimum value is 12, maximum value is 10000.
|
< Minimum value is 12, maximum value is 10000.
|
||||||
|
|
||||||
*'comments'* *'com'* *E524* *E525*
|
*'comments'* *'com'* *E524* *E525*
|
||||||
'comments' 'com' string (default "s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-")
|
'comments' 'com' string (default "s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:•")
|
||||||
local to buffer
|
local to buffer
|
||||||
A comma-separated list of strings that can start a comment line. See
|
A comma-separated list of strings that can start a comment line. See
|
||||||
|format-comments|. See |option-backslash| about using backslashes to
|
|format-comments|. See |option-backslash| about using backslashes to
|
||||||
|
@@ -37,6 +37,7 @@ Defaults *nvim-defaults*
|
|||||||
- 'backspace' defaults to "indent,eol,start"
|
- 'backspace' defaults to "indent,eol,start"
|
||||||
- 'backupdir' defaults to .,~/.local/state/nvim/backup// (|xdg|), auto-created
|
- 'backupdir' defaults to .,~/.local/state/nvim/backup// (|xdg|), auto-created
|
||||||
- 'belloff' defaults to "all"
|
- 'belloff' defaults to "all"
|
||||||
|
- 'comments' includes "fb:•"
|
||||||
- 'commentstring' defaults to ""
|
- 'commentstring' defaults to ""
|
||||||
- 'compatible' is always disabled
|
- 'compatible' is always disabled
|
||||||
- 'complete' excludes "i"
|
- 'complete' excludes "i"
|
||||||
|
2
runtime/lua/vim/_meta/options.lua
generated
2
runtime/lua/vim/_meta/options.lua
generated
@@ -956,7 +956,7 @@ vim.go.co = vim.go.columns
|
|||||||
--- insert a space.
|
--- insert a space.
|
||||||
---
|
---
|
||||||
--- @type string
|
--- @type string
|
||||||
vim.o.comments = "s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-"
|
vim.o.comments = "s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:•"
|
||||||
vim.o.com = vim.o.comments
|
vim.o.com = vim.o.comments
|
||||||
vim.bo.comments = vim.o.comments
|
vim.bo.comments = vim.o.comments
|
||||||
vim.bo.com = vim.bo.comments
|
vim.bo.com = vim.bo.comments
|
||||||
|
@@ -1287,7 +1287,7 @@ return {
|
|||||||
abbreviation = 'com',
|
abbreviation = 'com',
|
||||||
alloced = true,
|
alloced = true,
|
||||||
cb = 'did_set_comments',
|
cb = 'did_set_comments',
|
||||||
defaults = { if_true = 's1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-' },
|
defaults = { if_true = 's1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:•' },
|
||||||
deny_duplicates = true,
|
deny_duplicates = true,
|
||||||
desc = [=[
|
desc = [=[
|
||||||
A comma-separated list of strings that can start a comment line. See
|
A comma-separated list of strings that can start a comment line. See
|
||||||
|
Reference in New Issue
Block a user