aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* test(statuscolumn): add more tests for wrapped lines (#21718)zeertzjq2023-01-10
| | | | | | test(statuscolumn): add more tests more wrapped lines Also initialize a "relnum" variable to suppress a Coverity warning. The uninitialized value wasn't actually used by build_statuscol_str().
* refactor: replace char_u with char 19 (#21241)dundargoc2023-01-10
| | | | | * refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
* docs: add 'statuscolumn' docstrings (#21717)luukvbaal2023-01-10
|
* vim-patch:partial:9.0.1166: code is indented more than necessary (#21716)zeertzjq2023-01-10
| | | | | | | | | | | | | | | | | | | | | | Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes vim/vim#11792) https://github.com/vim/vim/commit/1cfb14aa972ccf3235ac67f07b7db1175b7c5384 Partial port as some highlight.c changes depend on previous patches. Cherry-pick fname_match() change from patch 8.2.4959. Omit internal_func_check_arg_types(): only used for Vim9 script. N/A patches for version.c: vim-patch:9.0.1167: EditorConfig files do not have their own filetype Problem: EditorConfig files do not have their own filetype. Solution: Add the "editorconfig" filetype. (Gregory Anders, closes vim/vim#11779) https://github.com/vim/vim/commit/d41262ed06564cef98a3800e2928e6e0db91abbf Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* feat(ui): add 'statuscolumn' optionluukvbaal2023-01-09
| | | | | | | | Problem: Unable to customize the column next to a window ('gutter'). Solution: Add 'statuscolumn' option that follows the 'statusline' syntax, allowing to customize the status column. Also supporting the %@ click execute function label. Adds new items @C and @s which will print the fold and sign columns. Line numbers and signs can be clicked, highlighted, aligned, transformed, margined etc.
* refactor: replace char_u with char 18 (#21237)dundargoc2023-01-09
| | | | | refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
* Merge pull request #21704 from bfredl/nofreebfredl2023-01-09
|\ | | | | fix(rpc): don't free args on error in rpc_send_event
| * fix(rpc): don't free args on error in rpc_send_eventbfredl2023-01-09
| | | | | | | | | | fixup #21631 fixes #21690
* | refactor: replace char_u with char 17 - remove STRLCPY (#21235)dundargoc2023-01-09
|/ | | | | refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
* Merge pull request #21702 from glepnir/fix_2bfredl2023-01-09
|\ | | | | fix(api): convert title_pos string in nvim_win_get_config
| * fix: use enum typeRaphael2023-01-09
| |
| * fix: formatRaphael2023-01-09
| |
| * fix(ui): add test caseRaphael2023-01-09
| |
| * fix(ui): convert title_pos string in nvim_win_get_configRaphael2023-01-09
| |
* | Merge pull request #21675 from bfredl/nonstdiobfredl2023-01-09
|\ \ | | | | | | fix(embed): handle stdio in server properly
| * | fix(embed): handle stdio in server properlybfredl2023-01-09
| |/ | | | | | | | | Rename stdin/stdout in the server, so that RPC data won't get corrupted. This also restores the use of stderr to write directly to the terminal.
* | Merge pull request #21488 from dundargoc/refactor/char_u/16.1zeertzjq2023-01-09
|\ \ | | | | | | refactor/char u/16.1
| * | test: add more tests for Unicodezeertzjq2023-01-09
| | |
| * | refactor: replace char_u with chardundargoc2023-01-09
|/ / | | | | | | Work on https://github.com/neovim/neovim/issues/459
* / test(tui_spec): doesn't use Unicode in cursor_address test (#21703)zeertzjq2023-01-09
|/ | | Using Unicode makes the test flaky because of #16245.
* test(tui_spec): improve cursor_address test (#21700)zeertzjq2023-01-09
|
* vim-patch:9.0.1158: code is indented more than necessary (#21697)zeertzjq2023-01-09
| | | | | | | | | | | Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes vim/vim#11787) https://github.com/vim/vim/commit/7f8b2559a30e2e2a443c35b28e94c6b45ba7ae04 Omit reset_last_used_map(): only used in Vim9 script. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* dist: transpile cfilter.vim => cfilter.lua #21662TJ DeVries2023-01-08
| | | | Vim has changed cfilter.vim from vimscript to vim9script. Nvim supports only vimscript, not vim9script.
* Merge pull request #21678 from dundargoc/build/remove-old-workaroundsdundargoc2023-01-08
|\ | | | | build: remove old cmake workarounds that aren't necessary anymore
| * build: remove workaround for ancient clang versionsdundargoc2023-01-08
| | | | | | | | | | We don't need to support this as it's only required when using AddressSanitizer, meaning it only affects developers.
| * build: remove workaround for old luajit versionsdundargoc2023-01-08
| | | | | | | | | | | | Luajit version 2.1.0-beta3 was released 2017, there's no reason to use such an old version on macOS. Also, the version check doesn't work anymore as LUAJIT_VERSION seems to not be defined anywhere.
* | feat(lsp): show active clients in :checkhealth vim.lsp (#21670)Mathias Fußenegger2023-01-08
| | | | | | | | | | For users using vim.lsp.start it can be useful to get an overview of active client that is less verbose than a full `:lua =vim.lsp.get_active_clients()`
* | fix(lsp): partially revert semantic token gravity change from #21574 (#21680)jdrouhard2023-01-08
|/
* ci(news): checkout to HEAD commit instead of merge commit (#21679)dundargoc2023-01-07
| | | | | The default merge branch is unreliable when trying to determine number of commits in a PR. Using the HEAD branch of the PR removes this ambiguity.
* fix(editorconfig): do not highlight unknown properties as errors (#21673)Gregory Anders2023-01-07
| | | | | | | | | Other plugins may define their own custom properties outside of Neovim's builtin EditorConfig support. Instead of highlighting these unknown properties as errors, do not highlight them at all. This still differentiates between known and unknown properties, which helps to catch typos or mistakes, but does not use the garish "error" highlight that signals something is wrong.
* Merge pull request #21649 from gpanders/editorconfig-enableGregory Anders2023-01-07
|\ | | | | feat(editorconfig): allow editorconfig to be toggled dynamically
| * refactor(editorconfig)!: change editorconfig_enable to editorconfigGregory Anders2023-01-07
| |
| * feat(editorconfig): allow editorconfig to be toggled dynamicallyGregory Anders2023-01-07
|/ | | | | | | | | Rather than only check `editorconfig_enable` when the plugin is loaded, check it each time the autocommand fires, so that users may enable or disable it dynamically. Also check for a buffer local version of the variable, so that editorconfig can be enabled or disabled per-buffer.
* Merge #21663 lua: "nvim -l" scriptname in _G.arg[0]Justin M. Keyes2023-01-06
|\
| * feat(lua): store "nvim -l" scriptname in _G.arg[0]Justin M. Keyes2023-01-07
| |
| * refactor: eliminate bump-deps.sh using "nvim -l"Justin M. Keyes2023-01-07
| |
| * lint: bump_deps.luaJustin M. Keyes2023-01-07
|/
* fix(coverity/433537): don't call kv_concat_len() when read_size is 0 (#21664)zeertzjq2023-01-07
| | | fix(coverity): don't call kv_concat_len() when read_size is 0
* fix(lsp): correct callHierarchy capability to fix lsp.buf.incoming_calls() ↵2023-01-06
| | | | | (#21665) Co-authored-by: maozhongzhou <maozhongzhou@wps.cn>
* Merge pull request #21666 from bfredl/padbellbfredl2023-01-06
|\ | | | | fix(tui): do not invoke loop recursively for pad()
| * fix(tui): do not invoke loop recursively for pad()bfredl2023-01-06
|/ | | | fixes #21610
* Merge #18706 execute Lua with "nvim -l"Justin M. Keyes2023-01-05
|\
| * refactor: extract code to open stdin for readingJustin M. Keyes2023-01-05
| |
| * refactor(lua): move _G.arg init to nlua_init()Justin M. Keyes2023-01-05
| |
| * feat(message): avoid spam on failed os_msgJustin M. Keyes2023-01-05
| | | | | | | | also de-dupe the code
| * feat(lua): execute stdin ("-") as LuaJustin M. Keyes2023-01-05
| |
| * feat(lua): exit 1 on Lua "-l" script errorJustin M. Keyes2023-01-05
| |
| * feat(lua): send "--" literally to Lua "-l" scriptJustin M. Keyes2023-01-05
| | | | | | | | | | | | | | | | | | | | | | | | Problem: When "-l" is followed by "--", we stop sending args to the Lua script and treat "--" in the usual way. This was for flexibility but didn't have a strong use-case, and has these problems: - prevents Lua "-l" scripts from handling "--" in their own way. - complicates the startup logic (must call nlua_init before command_line_scan) Solution: Don't treat "--" specially if it follows "-l".
| * ci: use nvim -l in api-docs jobJustin M. Keyes2023-01-05
| |
| * feat(lua)!: execute Lua with "nvim -l"Justin M. Keyes2023-01-05
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Nvim has Lua but the "nvim" CLI can't easily be used to execute Lua scripts, especially scripts that take arguments or produce output. Solution: - support "nvim -l [args...]" for running scripts. closes #15749 - exit without +q - remove lua2dox_filter - remove Doxyfile. This wasn't used anyway, because the doxygen config is inlined in gen_vimdoc.py (`Doxyfile` variable). - use "nvim -l" in docs-gen CI job Examples: $ nvim -l scripts/lua2dox.lua --help Lua2DoX (0.2 20130128) ... $ echo "print(vim.inspect(_G.arg))" | nvim -l - --arg1 --arg2 $ echo 'print(vim.inspect(vim.api.nvim_buf_get_text(1,0,0,-1,-1,{})))' | nvim +"put ='text'" -l - TODO? -e executes Lua code -l loads a module -i enters REPL _after running the other arguments_.