aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api
Commit message (Collapse)AuthorAge
...
| * docs(api): nvim_set_hl attributes #18558Oliver Marriott2022-05-15
| |
| * fix(api): nvim_eval_statusline should validate input #18347deforde2022-05-15
| | | | | | | | | | Fix #18112 Make an exception for strings starting with "%!".
| * docs(nvim_set_keymap): specify that optional arguments defaults to false ↵dundargoc2022-05-15
| | | | | | | | | | (#18177) Closes: https://github.com/neovim/neovim/issues/16919
| * refactor(api/nvim_cmd): use `kvec_t` for constructing cmdline stringFamiu Haque2022-05-14
| | | | | | | | Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
| * docs: nvim_buf_[get|set]_[text|lines] (#18404)Andrey Mishchenko2022-05-11
| | | | | | | | - Use consistent formatting for args docs. - Clarify inclusivity/exclusivity in `nvim_buf_[get|set]_text`.
| * fix(api): make `nvim_cmd` work correctly with empty arguments list (#18527)Famiu Haque2022-05-11
| | | | | | Closes #18526.
| * Merge pull request #18366 from famiu/feat/api/nvim_cmdbfredl2022-05-11
| |\ | | | | | | feat(api): add `nvim_cmd`
| | * feat(api): add `nvim_cmd`Famiu Haque2022-05-11
| | | | | | | | | | | | Adds the API function `nvim_cmd` which allows executing an Ex-command through a Dictionary which can have the same values as the return value of `nvim_parse_cmd()`. This makes it much easier to do things like passing arguments with a space to commands that otherwise may not allow it, or to make commands interpret certain characters literally when they otherwise would not.
| * | vim-patch:8.2.4911: the mode #defines are not clearly named (#18499)zeertzjq2022-05-10
| |/ | | | | | | | | | | | | | | Problem: The mode #defines are not clearly named. Solution: Prepend MODE_. Renumber them to put the mapped modes first. https://github.com/vim/vim/commit/249591057b4840785c50e41dd850efb8a8faf435 A hunk from the patch depends on patch 8.2.4861, which hasn't been ported yet, but that should be easy to notice.
| * refactor: replace char_u variables and functions with charDundar Goc2022-05-09
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
| * Merge pull request #18425 from dundargoc/refactor/char_u/1bfredl2022-05-07
| |\ | | | | | | refactor: replace char_u variables and functions with char
| | * refactor: replace char_u variables and functions with charDundar Goc2022-05-07
| | | | | | | | | | | | Work on https://github.com/neovim/neovim/issues/459
| * | refactor(decor): use decor levels properlybfredl2022-05-07
| | |
| * | fix(api): make `nvim_parse_cmd` work correctly with both range and countFamiu Haque2022-05-07
| |/ | | | | | | | | | | | | | | It seems range and count can be used together in commands. This PR fixes the behavior of `nvim_parse_cmd` for those cases by removing the mutual exclusivity of "range" and "count". It also removes range line number validation for `nvim_parse_cmd` as it's not its job to validate the command.
| * Merge pull request #18442 from dundargoc/uncrustifybfredl2022-05-06
| |\ | | | | | | refactor: upgrade uncrustify configuration to version 0.75
| | * refactor: upgrade uncrustify configuration to version 0.75Dundar Goc2022-05-06
| | |
| * | Merge pull request #18438 from famiu/feat/api/nvim_parse_cmdbfredl2022-05-06
| |\ \ | | |/ | |/| fix(api): make `nvim_parse_cmd` propagate errors
| | * fix(api): make `nvim_parse_cmd` propagate errorsFamiu Haque2022-05-05
| | | | | | | | | | | | | | | Makes `nvim_parse_cmd` propagate any errors that occur while parsing to give the user a better idea of what's wrong with the command.
| * | Merge pull request #18431 from famiu/feat/api/nvim_get_autocmds/group_namebfredl2022-05-05
| |\ \ | | | | | | | | feat(api): add `group_name` to `nvim_get_autocmds`
| | * | feat(api): add `group_name` to `nvim_get_autocmds`Famiu Haque2022-05-05
| | | |
| * | | Merge pull request #18416 from dundargoc/refactor/remove-char_ubfredl2022-05-05
| |\ \ \ | | |_|/ | |/| | refactor/remove char u
| | * | refactor: replace char_u variables and functions with charDundar Goc2022-05-05
| | |/ | | | | | | | | | Work on https://github.com/neovim/neovim/issues/459
| * / refactor(api): make `range` in `nvim_parse_cmd` an arrayFamiu Haque2022-05-05
| |/ | | | | | | | | | | | | | | Changes the `range` value in `nvim_parse_cmd` into an array to describe range information more concisely. Also makes `range` and `count` be mutually exclusive by making count `-1` when command takes a range instead of a count. Additionally corrects the behavior of `count` for built-in commands by making the default count `0`.
| * refactor: replace char_u variables and functions with charDundar Goc2022-05-04
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
| * refactor: replace char_u variables and functions with charDundar Goc2022-05-04
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
| * feat(nvim_parse_cmd): add range, count, reg #18383Famiu Haque2022-05-04
| | | | | | | | | | Adds range, count and reg to the return values of nvim_parse_cmd. Also makes line1 and line2 be -1 if the command does not take a range. Also moves nvim_parse_cmd to vimscript.c because it fits better there.
| * feat(api/ui): win_extmarksYatao Li2022-05-03
| |
| * refactor: replace char_u variables and functions with charDundar Goc2022-05-03
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
| * fix(coverity): use xstrndup() instead of vim_strsave() (#18363)zeertzjq2022-05-03
| |
| * refactor(ui): simplify stdin handlingbfredl2022-05-02
| |
| * feat(api): support handling stdin stream in remote uihlpr982022-05-02
| |
| * fix(api): preserve `cmdmod` on `nvim_parse_cmd`Famiu Haque2022-05-02
| |
| * refactor: replace char_u variables and functions with charDundar Goc2022-04-30
| | | | | | | | Work on https://github.com/neovim/neovim/issues/459
| * feat(api): add `nvim_parse_cmdline`Famiu Haque2022-04-30
| | | | | | | | Adds an API function to parse a command line string and get command information from it.
| * refactor: replace char_u variables and functions with char (#18288)dundargoc2022-04-30
| | | | | | Work on https://github.com/neovim/neovim/issues/459
| * refactor(uncrustify): change rules to better align with the style guideDundar Goc2022-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | Add space around arithmetic operators '+' and '-'. Remove space between back-to-back parentheses, i.e. ')(' vs. ') ('. Remove space between '((' or '))' of control statements. Add space between ')' and '{' of control statements. Remove space between function name and '(' on function declaration. Collapse empty blocks between '{' and '}'. Remove newline at the end of the file. Remove newline between 'enum' and '{'. Remove newline between '}' and ')' in a function invocation. Remove newline between '}' and 'while' of 'do' statement.
| * refactor(uncrustify): format all c code under /src/nvim/Dundar Goc2022-04-29
| |
| * refactor(uncrustify): disable formatting in problematic code sectionsDundar Goc2022-04-29
| |
| * vim-patch:8.1.2145: cannot map <C-H> when modifyOtherKeys is enabledzeertzjq2022-04-29
| | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot map <C-H> when modifyOtherKeys is enabled. Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use only the first one when modifyOtherKeys has been detected. https://github.com/vim/vim/commit/459fd785e4a8d044147a3f83a5fca8748528aa84 Add REPTERM_NO_SPECIAL instead of REPTERM_SPECIAL because the meaning of "special" is different between Vim and Nvim. Omit seenModifyOtherKeys as Nvim supports attaching multiple UIs. Omit tests as they send terminal codes. Keep the behavior of API functions.
| * refactor(terminal)!: drop winpty, require Windows 10 #18253erw72022-04-26
| | | | | | | | | | | | | | | | | | | | | | Problem: winpty is only needed for Windows 8.1. Removing it reduces our build and code complexity. Solution: - Remove winpty. - Require Windows 10. closes #18252
| * docs: make docstring consistent with parameters #18178dundargoc2022-04-23
| | | | | | Closes: https://github.com/neovim/neovim/issues/12691
| * docs(api): add example showing necessity to wrap callback function (#18179)Mathias Fußenegger2022-04-20
| | | | | | | | | | | | | | Some people ran into issues trying to use `callback = myluafun` because of the event data payload. Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
| * feat(api): ui options relevant for remote TUIhlpr982022-04-17
| |
| * docs: typo fixes (#17859)dundargoc2022-04-15
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
| * refactor!: rename nvim_add_user_command to nvim_create_user_commandGregory Anders2022-04-10
| |
| * vim-patch:8.2.4723: the ModeChanged autocmd event is inefficientzeertzjq2022-04-10
| | | | | | | | | | | | | | | | | | Problem: The ModeChanged autocmd event is inefficient. Solution: Avoid allocating memory. (closes vim/vim#10134) Rename trigger_modechanged() to may_trigger_modechanged(). https://github.com/vim/vim/commit/2bf52dd065495cbf28e28792f2c2d50d44546d9f Make v:event readonly for ModeChanged.
| * feat(api)!: pass args table to autocommand callbacksGregory Anders2022-04-08
| |
| * Merge pull request #17938 from ggandor/autocmd-api-namesbfredl2022-04-01
| |\ | | | | | | refactor(api)!: use singular/plural consistently in the autocmd API
| | * refactor(api)!: use singular/plural consistently in the autocmd APIGyörgy Andorka2022-03-31
| | |
| * | Merge pull request #17929 from lewis6991/autocmdbfredl2022-03-31
| |\ \ | | | | | | | | fix(api): improve autocmd error handling