neovim/runtime/lua/vim
Evgeni Chasnovski 0a2218f965
fix(comment): fall back to using trimmed comment markers (#28938)
Problem: Currently comment detection, addition, and removal are done
  by matching 'commentstring' exactly. This has the downside when users
  want to add comment markers with space (like with `-- %s`
  commentstring) but also be able to uncomment lines that do not contain
  space (like `--aaa`).

Solution: Use the following approach:
  - Line is commented if it matches 'commentstring' with trimmed parts.
  - Adding comment is 100% relying on 'commentstring' parts (as is now).
  - Removing comment is first trying exact 'commentstring' parts with
    fallback on trying its trimmed parts.
2024-05-23 15:30:53 -05:00
..
_meta vim-patch:9.1.0430: getregionpos() doesn't handle one char selection (#28924) 2024-05-23 06:08:24 +08:00
filetype vim-patch:9.1.0401: filetype: zsh module files are not recognized 2024-05-11 09:13:57 +02:00
func fix(treesitter): return correct match table in iter_captures() 2024-03-27 10:39:46 +00:00
health refactor!: remove nvim and provider module for checkhealth 2024-05-19 11:46:34 +02:00
lsp fix(lsp): check if buffer was detached in on_init callback (#28914) 2024-05-23 15:17:53 +02:00
provider fix: merge all provider healthchecks into a single health.lua 2024-05-22 21:34:49 +02:00
treesitter feat: remove deprecated features 2024-05-16 18:30:59 +02:00
ui/clipboard fix(osc52): use nvim_chan_send() to stderr for copying (#26690) 2023-12-21 11:47:04 +08:00
_comment.lua fix(comment): fall back to using trimmed comment markers (#28938) 2024-05-23 15:30:53 -05:00
_defaults.lua revert: default LSP mappings (#28649) 2024-05-06 08:13:50 -05:00
_editor.lua perf(lua): faster vim.deprecate() #28470 2024-04-23 08:23:45 -07:00
_init_packages.lua refactor(types): more fixes 2024-03-06 10:45:22 +00:00
_inspector.lua fix: lua annotations 2024-04-26 15:13:06 +01:00
_meta.lua refactor(lsp): resolve the config-client entanglement 2024-02-13 14:49:20 +00:00
_options.lua refactor(lua): rename tbl_islist => islist 2024-04-21 17:08:07 +02:00
_system.lua fix(vim.ui): open() may wait indefinitely #28325 2024-04-15 04:33:09 -07:00
_watch.lua perf(lsp): only joinpath for dirs in watchdirs 2024-05-14 09:42:42 +01:00
diagnostic.lua fix(diagnostic): show backtrace for deprecation warnings 2024-05-20 00:02:51 +02:00
F.lua fix(diagnostic): typing 2024-01-16 09:33:10 +00:00
filetype.lua vim-patch:9.1.0425: filetype: purescript files are not recognized 2024-05-20 14:43:12 +02:00
fs.lua perf(vim.fs.normalize): use iterator 2024-05-15 12:38:26 +01:00
func.lua fix(treesitter): return correct match table in iter_captures() 2024-03-27 10:39:46 +00:00
glob.lua refactor(lua): refactored glob 2024-01-19 11:54:04 +00:00
health.lua docs: move vim.health documentation to lua.txt 2024-05-22 20:15:17 +02:00
highlight.lua refactor(api): nvim_win_xx_ns are EXPERIMENTAL 2024-05-12 23:53:24 +02:00
inspect.lua
iter.lua fix(vim.iter): enable optimizations for arrays (lists with holes) (#28781) 2024-05-17 14:17:25 -05:00
keymap.lua refactor(lua): type annotations 2024-03-16 19:26:10 +00:00
loader.lua perf(loader): use a quicker version of vim.fs.normalize 2024-05-15 12:38:26 +01:00
lsp.lua refactor(lsp): reuse buf_detach_client logic in on_detach (#28939) 2024-05-23 15:17:03 +02:00
provider.lua refactor: create function for deferred loading 2024-02-03 16:53:41 +01:00
re.lua docs: auto-generate docs for vim.lpeg and vim.re 2024-01-14 11:08:33 +00:00
secure.lua refactor(lua): type annotations 2024-03-16 19:26:10 +00:00
shared.lua fix: extend the life of vim.tbl_flatten to 0.13 2024-05-16 20:05:14 +01:00
snippet.lua docs: news 2024-05-15 23:19:26 +02:00
termcap.lua docs: various fixes (#28208) 2024-04-30 07:04:42 +08:00
text.lua refactor(lua): type annotations 2024-03-16 19:26:10 +00:00
treesitter.lua docs: fix lua type warnings (#28633) 2024-05-05 06:08:17 +08:00
ui.lua fix(vim.ui)!: change open() to return result|nil, errmsg|nil #28612 2024-05-03 03:20:03 -07:00
uri.lua fix(lua): remove uri fragment from file paths (#27647) 2024-02-28 10:50:53 +01:00
version.lua docs: support inline markdown 2024-03-09 11:21:55 +00:00
vimhelp.lua docs: apply current colorscheme to default highlight groups 2023-12-20 18:58:40 +01:00