mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 14:55:33 +00:00
refactor!: optwin.lua #36505
Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
// - If it's a numeric option, add any necessary bounds checks to check_num_option_bounds().
|
||||
// - If it's a list of flags, add some code in do_set(), search for WW_ALL.
|
||||
// - Add documentation! "desc" in options.lua, and any other related places.
|
||||
// - Add an entry in runtime/optwin.vim.
|
||||
// - Add an entry in runtime/scripts/optwin.lua.
|
||||
|
||||
#define IN_OPTION_C
|
||||
#include <assert.h>
|
||||
|
||||
@@ -55,16 +55,10 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG)
|
||||
list(SORT NVIM_RELATIVE_SOURCES)
|
||||
add_custom_command(
|
||||
OUTPUT ${NVIM_POT}
|
||||
COMMAND $<TARGET_FILE:nvim_bin> -u NONE -i NONE -n --headless --cmd "set cpo+=+"
|
||||
-c "silent source ${CMAKE_CURRENT_SOURCE_DIR}/tojavascript.vim"
|
||||
${NVIM_POT} ${PROJECT_SOURCE_DIR}/runtime/optwin.vim
|
||||
COMMAND ${XGETTEXT_PRG} -o ${NVIM_POT} --default-domain=nvim
|
||||
--add-comments --keyword=_ --keyword=N_ --keyword=NGETTEXT:1,2
|
||||
-D ${CMAKE_CURRENT_SOURCE_DIR} -D ${CMAKE_CURRENT_BINARY_DIR}
|
||||
${NVIM_RELATIVE_SOURCES} optwin.js
|
||||
COMMAND $<TARGET_FILE:nvim_bin> -u NONE -i NONE -n --headless --cmd "set cpo+=+"
|
||||
-c "silent source ${CMAKE_CURRENT_SOURCE_DIR}/fixfilenames.vim"
|
||||
${NVIM_POT} ${PROJECT_SOURCE_DIR}/runtime/optwin.vim
|
||||
${NVIM_RELATIVE_SOURCES} ${PROJECT_SOURCE_DIR}/runtime/scripts/optwin.lua
|
||||
VERBATIM
|
||||
DEPENDS ${NVIM_SOURCES} nvim_bin nvim_runtime_deps)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// Some defines from the old feature.h
|
||||
#define SESSION_FILE "Session.vim"
|
||||
#define SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim"
|
||||
#define SYS_OPTWIN_FILE "$VIMRUNTIME/scripts/optwin.lua"
|
||||
#define RUNTIME_DIRNAME "runtime"
|
||||
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user