aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Merge branch 'fix_repeatcmdline' into mixmixJosh Rahm2022-09-15
|\
| * eval/userfunc.c: save the repeat_cmdline along with the redo buffJosh Rahm2022-09-15
| | | | | | | | | | | | A user function can clobber the repeat_cmdline, which is used to build the redo buffer, thus, if the redo buffer is saved when calling a userfunc, so should the repeat_cmdline.
* | Merge branch 'floattitle' into mixJosh Rahm2022-09-12
|\ \
| * \ Merge remote-tracking branch 'upstream/master' into floattitleJosh Rahm2022-09-12
| |\ \
| * \ \ Merge remote-tracking branch 'upstream/master' into floattitleJosh Rahm2022-08-22
| |\ \ \
| * | | | feat(floattitle): add ability to title floating windowsJosh Rahm2022-08-22
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is accomplished with adding a few new parameters to th e float config: * title: The title as a string * title_pos: The position of the title is one of: * kTitleLeft * kTitleCenter * kTitleRight The title does support statusline-esque highlighting semantics.
* | | | Merge branch 'userreg' into mixJosh Rahm2022-09-12
|\ \ \ \
| * \ \ \ Merge remote-tracking branch 'upstream/master' into userregJosh Rahm2022-09-12
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | Merge remote-tracking branch 'upstream/master' into userregJosh Rahm2022-08-22
| |\ \ \ \ | | | |_|/ | | |/| |
| * | | | feat(userregs): getreg() now works for multibyte registersJosh Rahm2022-08-22
| | | | |
| * | | | feat(userregs): make the @" register call back into the userreg.Josh Rahm2022-08-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this changce, the userregs would not be repeated with @", now they can be. There is still the problem of repeating with a count does not call into the userreg, but that would be a lot of work to implement
| * | | | feat(userreg): normalize userregfunc option formatJosh Rahm2022-08-21
| | | | |
| * | | | feat(userreg) fix 'recording' message to handle multibyte charsJosh Rahm2022-08-21
| | | | |
| * | | | feat(userreg): add runtime files for userregJosh Rahm2022-08-21
| | | | |
| * | | | feat(userreg): fix typos userregfun -> userregfuncJosh Rahm2022-08-21
| | | | |
| * | | | feat(userreg): Add user-defined registers to Neovim.Josh Rahm2022-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change unlocks additional registers for Neovim by allowing a user to define their own behavior for non-builtin registers. This is accopmlished through a new option 'userregfunc' The 'userregfunc' defines the function to call when handling a register for which there is no builtin functionality. The 'userregfunc' function should take 3 arguments: action - Either "yank" or "put" register - The character corresponding to the register content - In the case of action == "yank", the dictionary describing the yanked content, with the following keys: {type} - Either "char", "line" or "block" {lines} - The lines being yanked as a list {width} - The width in case of "block" mode. {additional_data} - Additional data (can be returned in "put" mode) In case of "put" this function should return the content to put. This content can be either: * A dictionary in the same template as content above. * A list of strings. This will be assumed to be "line" mode. * A string. This will be assumed to be "char" mode. An example of a "null" 'userregfunc' that provides an implementation identical to traditional vim registers would be: let s:contents = {} function! MyUserregFunction(action, register, content) abort if a:action == "put" return get(s:contents, a:register, "") else let s:contents[a:register] = a:content endif endfunction set userregfun=MyUserregFunction It is important to note that any valid unicode character can now be a register, including something like @☺. This change also addresses the multibyte parsing issues surrounding let @a = 'xyz' let @🔨 = 'hammer'
* | | | | Merge branch 'usermarks' into mixJosh Rahm2022-09-12
|\ \ \ \ \
| * \ \ \ \ Merge remote-tracking branch 'upstream/master' into usermarksJosh Rahm2022-09-12
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| * | | | | Merge remote-tracking branch 'upstream/master' into usermarksJosh Rahm2022-08-22
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| * | | | | feat(usermarks) getpos() now works for multibyte marksJosh Rahm2022-08-22
| | | | | |
| * | | | | feat(usermarks): missing option_def for p_umfJosh Rahm2022-08-22
| | | | | |
| * | | | | feat(usermarks) remove echo statement from usermark.vimJosh Rahm2022-08-22
| | | | | |
| * | | | | feat(usermarks) fix bugs with usermarks runtimeJosh Rahm2022-08-22
| | | | | |
| * | | | | feat(usermarks): add runtime files for usermarksJosh Rahm2022-08-21
| | | | | |
| * | | | | feat(usermarks): add usermarks to f_has listJosh Rahm2022-08-21
| | | | | |
| * | | | | Merge remote-tracking branch 'upstream/master' into usermarksJosh Rahm2022-08-21
| |\ \ \ \ \ | | | |_|_|/ | | |/| | |
| * | | | | feat(usermark); implement "user marks", i.e. marks whose behavior can be ↵Josh Rahm2022-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | defined by the user. (Neo)vim has many different marks defined, but sometimes this may not be completely adequate. This change give the user the ability to define behavior for marks which are not built in to (Neo)vim directly. This is accomplished through a new option called the "usermarkfunc." The usermarkfunc points to a vimscript function that takes an "action" paramter (either "get" or "set") and a mark name. a basic implementation that re-implements global mark behavior for user marks would look something like: let s:marks = {} function UserMarkFunc(action, mark) if a:action == "set" let [n, lnum, col, off, curswant] = getcurpos() let s:marks[a:mark] = \ { "line": lnum, "col": col, "file": expand("%:p") } else return s:marks[a:mark] endif endfunction set usermarkfunc=UserMarkFunc of course the user could make the behavior be whatever. It should also be noted that any valid unicode character can now be a mark. It is not just limited to ASCII characters.
* | | | | | Merge remote-tracking branch 'upstream/master' into colorcolcharJosh Rahm2022-09-12
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Merge pull request #20141 from vigoux/ts-self-inheritsChristian Clason2022-09-12
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix(treesitter): prevent endless loop on self-inheritence docs(treesitter): suggest using extends to extend queries
| | * | | | | docs(treesitter): suggest using `extends` to extend queriesThomas Vigouroux2022-09-12
| | | | | | |
| | * | | | | fix(treesitter): prevent endless loop on self-inheritenceThomas Vigouroux2022-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #20139
| * | | | | | vim-patch:9.0.0299: error messages for setcmdline() could be better (#20169)zeertzjq2022-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Error messages for setcmdline() could be better. Solution: Use more specific error messages. (Yegappan Lakshmanan, closes vim/vim#10995) https://github.com/vim/vim/commit/25f1e5556259d536c8608185145b0769262873ff Cherry-pick tv_check_for_opt_number_arg() from Vim.
| * | | | | | vim-patch:9.0.0448: SubRip files are not recognized (#20167)Christian Clason2022-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: SubRip files are not recognized. Solution: Add a pattern for SubRip. (closes vim/vim#11113) https://github.com/vim/vim/commit/5a4eb55122e45444d3a6c56ce108ce29bc8e52ab
| * | | | | | Merge pull request #20091 from teto/fix-flakeMatthieu Coudron2022-09-12
| |\ \ \ \ \ \
| | * | | | | | build(nix): removed the useless 'app'Matthieu Coudron2022-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the format changed depending on the nix version and it is useless anyway.
| | * | | | | | build(nix): bumped flakeMatthieu Coudron2022-09-05
| | | | | | | |
| | * | | | | | build(flake): add sumneko lsp in PATHMatthieu Coudron2022-09-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and reformatted the file
| * | | | | | | vim-patch:8.2.4671: 'wildignorecase' is sometimes not used for glob() (#20165)zeertzjq2022-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'wildignorecase' is sometimes not used for glob(). Solution: Also use 'wildignorecase' when there are no wildcards. (closes vim/vim#10066, closes vim/vim#8350) https://github.com/vim/vim/commit/a3157a476bfa8c3077d510cc8400093c0d115df5
| * | | | | | | Merge pull request #20163 from zeertzjq/vim-8.2.5034zeertzjq2022-09-12
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | vim-patch:8.2.5034: there is no way to get the byte index from a virtual column
| | * | | | | | | vim-patch:8.2.5034: there is no way to get the byte index from a virtual columnzeertzjq2022-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: There is no way to get the byte index from a virtual column. Solution: Add virtcol2col(). (Yegappan Lakshmanan, closes vim/vim#10477, closes vim/vim#10098) https://github.com/vim/vim/commit/5a6ec10cc80ab02eeff644ab19b82312630ea855 Cherry-pick tv_check_for_number_arg() from Vim. Cherry-pick pathshorten() doc change.
| | * | | | | | | refactor: move f_screenpos() to move.czeertzjq2022-09-12
| |/ / / / / / /
| * | | | | | | Merge pull request #20160 from zeertzjq/vim-8.2.2646zeertzjq2022-09-12
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | vim-patch:8.2.{2646,2664}: string argument type check
| | * | | | | | | vim-patch:8.2.2664: Vim9: not enough function arguments checked for stringzeertzjq2022-09-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: not enough function arguments checked for string. Solution: Check in balloon functions. Refactor function arguments. https://github.com/vim/vim/commit/32105ae88f3aa6a6af30336f0bc9f8eb81292cd7 Cherry-pick removal of useless check from patch 8.2.3840. vim-patch:8.2.3083: crash when passing null string to charclass() Problem: Crash when passing null string to charclass(). Solution: Bail out when string pointer is NULL. (Christian Brabandt, closes vim/vim#8498, closes vim/vim#8260) https://github.com/vim/vim/commit/72463f883cdfd08e29ab0018ef3889284848d5f1
| | * | | | | | | vim-patch:8.2.2646: Vim9: error for not using string doesn't mention argumentzeertzjq2022-09-12
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim9: error for not using string doesn't mention argument. Solution: Add argument number. https://github.com/vim/vim/commit/f28f2ac425600b88da0bdcc12a82cd620f575681
| * | / / / / / vim-patch:9.0.0443: blueprint files are not recognized (#20155)Christian Clason2022-09-11
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Blueprint files are not recognized. Solution: Add a pattern for blueprint files. (Gabriele Musco, closes vim/vim#11107) https://github.com/vim/vim/commit/cce82a55b8105560a2ef724999c856966337b48e
| * | | | | | fix(lsp): schedule removal of client object (#20148)Gregory Anders2022-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The execution of the LspDetach autocommands in the LSP client's on_exit function are scheduled on the event loop to avoid making API calls in a fast context; however, this means that by the time the LspDetach autocommands finally run the client object has already been deleted. To address this, we also schedule the deletion of the client on the event loop so that it is guaranteed to occur after all of the LspDetach autocommands have fired.
| * | | | | | vim-patch:71b6d3397649 (#20144)Christian Clason2022-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/71b6d3397649fed68ef587aa863fcbdf5fdb057a
| * | | | | | build: ensure version generation always succeeds (#19515)dundargoc2022-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add --always flag to `git describe` so version generation succeeds if current directory is in a git repo. If not in git repo, fall back to a default version in the format vx.y.z-dev
| * | | | | | Merge pull request #20068 from dundargoc/refactor/char_u/10bfredl2022-09-10
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | refactor: replace char_u with char 10: remove `FNAMECMP`, `FNAMENCMP` and `STRLCAT`
| | * | | | | | refactor: replace char_u with charDundar Göc2022-09-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Work on https://github.com/neovim/neovim/issues/459