mirror of
https://github.com/neovim/neovim.git
synced 2026-04-28 02:04:10 +00:00
feat(:source): source current ft=lua buffer as Lua code (#23802)
This commit is contained in:
@@ -92,6 +92,9 @@ The following changes to existing APIs or features add new behavior.
|
||||
• |LspRequest| autocmd callbacks now contain additional information about the LSP
|
||||
request status update that occurred.
|
||||
|
||||
• `:source` without arguments treats a buffer with its 'filetype' set to "lua"
|
||||
as Lua code regardless of its extension.
|
||||
|
||||
==============================================================================
|
||||
REMOVED FEATURES *news-removed*
|
||||
|
||||
|
||||
@@ -183,7 +183,10 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
|
||||
|
||||
*:so* *:source* *load-vim-script*
|
||||
:[range]so[urce] [file] Runs |Ex| commands or Lua code (".lua" files) from
|
||||
[file], or current buffer if no [file].
|
||||
[file].
|
||||
If no [file], the current buffer is used, and it is
|
||||
treated as Lua code if its 'filetype' is "lua" or its
|
||||
file name ends with ".lua".
|
||||
Triggers the |SourcePre| autocommand.
|
||||
*:source!*
|
||||
:[range]so[urce]! {file}
|
||||
|
||||
Reference in New Issue
Block a user