mirror of https://github.com/neovim/neovim.git
Compare commits
3 Commits
0707402de7
...
895c555238
Author | SHA1 | Date |
---|---|---|
dundargoc | 895c555238 | |
dundargoc | c18d7941ef | |
dundargoc | e2e44ea835 |
|
@ -50,11 +50,6 @@ file(GLOB DOCFILES CONFIGURE_DEPENDS ${PROJECT_SOURCE_DIR}/runtime/doc/*.txt)
|
|||
set_directory_properties(PROPERTIES
|
||||
EP_PREFIX "${DEPS_BUILD_DIR}")
|
||||
|
||||
find_program(CCACHE_PRG ccache)
|
||||
if(CCACHE_PRG)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env CCACHE_SLOPPINESS=pch_defines,time_macros ${CCACHE_PRG})
|
||||
endif()
|
||||
|
||||
if(NOT CI_BUILD)
|
||||
set(CMAKE_INSTALL_MESSAGE NEVER)
|
||||
endif()
|
||||
|
|
|
@ -36,7 +36,7 @@ Windows 8+ is required. Windows 7 or older is not supported.
|
|||
|
||||
### [Chocolatey](https://chocolatey.org)
|
||||
|
||||
- **Release (v0.7):** `choco install neovim` (use -y for automatically skipping confirmation messages)
|
||||
- **Latest Release:** `choco install neovim` (use -y for automatically skipping confirmation messages)
|
||||
- **Development (pre-release):** `choco install neovim --pre`
|
||||
|
||||
### [Scoop](https://scoop.sh/)
|
||||
|
|
|
@ -23,6 +23,12 @@ if(POLICY CMP0092)
|
|||
list(APPEND DEPS_CMAKE_ARGS -D CMAKE_POLICY_DEFAULT_CMP0092=NEW)
|
||||
endif()
|
||||
|
||||
find_program(CACHE_PRG NAMES ccache sccache)
|
||||
if(CACHE_PRG)
|
||||
set(CMAKE_C_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env CCACHE_SLOPPINESS=pch_defines,time_macros ${CACHE_PRG})
|
||||
list(APPEND DEPS_CMAKE_CACHE_ARGS -DCMAKE_C_COMPILER_LAUNCHER:STRING=${CMAKE_C_COMPILER_LAUNCHER})
|
||||
endif()
|
||||
|
||||
# MAKE_PRG
|
||||
if(UNIX)
|
||||
find_program(MAKE_PRG NAMES gmake make)
|
||||
|
@ -58,7 +64,8 @@ function(get_externalproject_options name DEPS_IGNORE_SHA)
|
|||
|
||||
set(EXTERNALPROJECT_OPTIONS
|
||||
DOWNLOAD_NO_PROGRESS TRUE
|
||||
EXTERNALPROJECT_OPTIONS URL ${${name_allcaps}_URL})
|
||||
EXTERNALPROJECT_OPTIONS URL ${${name_allcaps}_URL}
|
||||
CMAKE_CACHE_ARGS ${DEPS_CMAKE_CACHE_ARGS})
|
||||
|
||||
if(NOT ${DEPS_IGNORE_SHA})
|
||||
list(APPEND EXTERNALPROJECT_OPTIONS URL_HASH SHA256=${${name_allcaps}_SHA256})
|
||||
|
|
|
@ -281,10 +281,6 @@ gr{char} Replace the virtual characters under the cursor with
|
|||
that have a special meaning in Insert mode, such as
|
||||
most CTRL-keys, cannot be used.
|
||||
|
||||
*gr-default*
|
||||
Mapped to |vim.lsp.buf.references()| by default.
|
||||
|default-mappings|
|
||||
|
||||
*digraph-arg*
|
||||
The argument for Normal mode commands like |r| and |t| is a single character.
|
||||
When 'cpo' doesn't contain the 'D' flag, this character can also be entered
|
||||
|
|
|
@ -29,13 +29,6 @@ Use the stable (release) https://github.com/neovim/neovim/releases/latest
|
|||
version for a more predictable experience.
|
||||
|
||||
|
||||
CAN I USE RUBY-BASED VIM PLUGINS (E.G. LUSTYEXPLORER)? ~
|
||||
|
||||
Yes, starting with Nvim 0.1.5 PR #4980
|
||||
https://github.com/neovim/neovim/pull/4980 the legacy Vim `if_ruby` interface
|
||||
is supported.
|
||||
|
||||
|
||||
CAN I USE LUA-BASED VIM PLUGINS (E.G. NEOCOMPLETE)? ~
|
||||
|
||||
No. Starting with Nvim 0.2 PR #4411
|
||||
|
|
|
@ -2673,7 +2673,6 @@ vim.filetype.add({filetypes}) *vim.filetype.add()*
|
|||
vim.filetype.add {
|
||||
pattern = {
|
||||
['.*'] = {
|
||||
priority = -math.huge,
|
||||
function(path, bufnr)
|
||||
local content = vim.api.nvim_buf_get_lines(bufnr, 0, 1, false)[1] or ''
|
||||
if vim.regex([[^#!.*\\<mine\\>]]):match_str(content) ~= nil then
|
||||
|
@ -2682,6 +2681,7 @@ vim.filetype.add({filetypes}) *vim.filetype.add()*
|
|||
return 'drawing'
|
||||
end
|
||||
end,
|
||||
{ priority = -math.huge },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
@ -4346,7 +4346,7 @@ vim.snippet.jump({direction}) *vim.snippet.jump()*
|
|||
|
||||
You can use this function to navigate a snippet as follows: >lua
|
||||
vim.keymap.set({ 'i', 's' }, '<Tab>', function()
|
||||
if vim.snippet.jumpable(1) then
|
||||
if vim.snippet.active({ direction = 1 }) then
|
||||
return '<cmd>lua vim.snippet.jump(1)<cr>'
|
||||
else
|
||||
return '<Tab>'
|
||||
|
|
|
@ -423,6 +423,7 @@ The following changes to existing APIs or features add new behavior.
|
|||
• 'shortmess' includes the "C" flag.
|
||||
• 'grepprg' uses the -H and -I flags for grep by default,
|
||||
and defaults to using ripgrep if available.
|
||||
• "]d" and "[d" in Normal mode map to |vim.diagnostic.goto_next()| and
|
||||
|vim.diagnostic.goto_prev()|, respectively. |]d-default| |[d-default|
|
||||
• <C-W>d (and <C-W><C-D>) map to |vim.diagnostic.open_float()|
|
||||
|CTRL-W_d-default|
|
||||
|
|
|
@ -6886,8 +6886,6 @@ A jump table for the options with a short description can be found at |Q_op|.
|
|||
options options and mappings local to a window or buffer (not
|
||||
global values for local options)
|
||||
localoptions same as "options"
|
||||
slash |deprecated| Always enabled. Uses "/" in filenames.
|
||||
unix |deprecated| Always enabled. Uses "\n" line endings.
|
||||
|
||||
*'virtualedit'* *'ve'*
|
||||
'virtualedit' 've' string (default "")
|
||||
|
|
|
@ -7504,8 +7504,6 @@ vim.go.vdir = vim.go.viewdir
|
|||
--- options options and mappings local to a window or buffer (not
|
||||
--- global values for local options)
|
||||
--- localoptions same as "options"
|
||||
--- slash `deprecated` Always enabled. Uses "/" in filenames.
|
||||
--- unix `deprecated` Always enabled. Uses "\n" line endings.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.viewoptions = "folds,cursor,curdir"
|
||||
|
|
|
@ -2309,7 +2309,6 @@ end
|
|||
--- vim.filetype.add {
|
||||
--- pattern = {
|
||||
--- ['.*'] = {
|
||||
--- priority = -math.huge,
|
||||
--- function(path, bufnr)
|
||||
--- local content = vim.api.nvim_buf_get_lines(bufnr, 0, 1, false)[1] or ''
|
||||
--- if vim.regex([[^#!.*\\<mine\\>]]):match_str(content) ~= nil then
|
||||
|
@ -2318,6 +2317,7 @@ end
|
|||
--- return 'drawing'
|
||||
--- end
|
||||
--- end,
|
||||
--- { priority = -math.huge },
|
||||
--- },
|
||||
--- },
|
||||
--- }
|
||||
|
|
|
@ -539,7 +539,7 @@ end
|
|||
---
|
||||
--- ```lua
|
||||
--- vim.keymap.set({ 'i', 's' }, '<Tab>', function()
|
||||
--- if vim.snippet.jumpable(1) then
|
||||
--- if vim.snippet.active({ direction = 1 }) then
|
||||
--- return '<cmd>lua vim.snippet.jump(1)<cr>'
|
||||
--- else
|
||||
--- return '<Tab>'
|
||||
|
|
|
@ -353,7 +353,7 @@ void check_cursor_col(win_T *win)
|
|||
// Allow cursor past end-of-line when:
|
||||
// - in Insert mode or restarting Insert mode
|
||||
// - in Visual mode and 'selection' isn't "old"
|
||||
// - 'virtualedit' is set */
|
||||
// - 'virtualedit' is set
|
||||
if ((State & MODE_INSERT) || restart_edit
|
||||
|| (VIsual_active && *p_sel != 'o')
|
||||
|| (cur_ve_flags & VE_ONEMORE)
|
||||
|
|
|
@ -4082,7 +4082,7 @@ void separate_nextcmd(exarg_T *eap)
|
|||
break;
|
||||
}
|
||||
} else if (
|
||||
// Check for '"': start of comment or '|': next command */
|
||||
// Check for '"': start of comment or '|': next command
|
||||
// :@" does not start a comment!
|
||||
// :redir @" doesn't either.
|
||||
(*p == '"'
|
||||
|
|
|
@ -443,7 +443,7 @@ int grid_line_puts(int col, const char *text, int textlen, int attr)
|
|||
|
||||
if (col + mbyte_cells > max_col) {
|
||||
// Only 1 cell left, but character requires 2 cells:
|
||||
// display a '>' in the last column to avoid wrapping. */
|
||||
// display a '>' in the last column to avoid wrapping.
|
||||
schar = schar_from_ascii('>');
|
||||
mbyte_cells = 1;
|
||||
}
|
||||
|
|
|
@ -1963,7 +1963,7 @@ int syn_name2id_len(const char *name, size_t len)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// Avoid using stricmp() too much, it's slow on some systems */
|
||||
// Avoid using stricmp() too much, it's slow on some systems
|
||||
// Avoid alloc()/free(), these are slow too.
|
||||
vim_memcpy_up(name_u, name, len);
|
||||
name_u[len] = '\0';
|
||||
|
|
|
@ -1197,7 +1197,7 @@ static int cin_is_cpp_baseclass(cpp_baseclass_cache_T *cached)
|
|||
s = line;
|
||||
}
|
||||
if (s == line) {
|
||||
// don't recognize "case (foo):" as a baseclass */
|
||||
// don't recognize "case (foo):" as a baseclass
|
||||
if (cin_iscase(s, false)) {
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1812,8 +1812,7 @@ int makemap(FILE *fd, buf_T *buf)
|
|||
iemsg(_("E228: makemap: Illegal mode"));
|
||||
return FAIL;
|
||||
}
|
||||
do {
|
||||
// do this twice if c2 is set, 3 times with c3 */
|
||||
do { // do this twice if c2 is set, 3 times with c3
|
||||
// When outputting <> form, need to make sure that 'cpo'
|
||||
// is set to the Vim default.
|
||||
if (!did_cpo) {
|
||||
|
|
|
@ -9388,8 +9388,6 @@ return {
|
|||
options options and mappings local to a window or buffer (not
|
||||
global values for local options)
|
||||
localoptions same as "options"
|
||||
slash |deprecated| Always enabled. Uses "/" in filenames.
|
||||
unix |deprecated| Always enabled. Uses "\n" line endings.
|
||||
]=],
|
||||
expand_cb = 'expand_set_sessionoptions',
|
||||
full_name = 'viewoptions',
|
||||
|
|
|
@ -999,7 +999,7 @@ static void uniquefy_paths(garray_T *gap, char *pattern)
|
|||
memmove(path, path_cutoff, strlen(path_cutoff) + 1);
|
||||
} else {
|
||||
// Here all files can be reached without path, so get shortest
|
||||
// unique path. We start at the end of the path. */
|
||||
// unique path. We start at the end of the path.
|
||||
char *pathsep_p = path + len - 1;
|
||||
while (find_previous_pathsep(path, &pathsep_p)) {
|
||||
if (vim_regexec(®match, pathsep_p + 1, 0)
|
||||
|
|
|
@ -10555,7 +10555,7 @@ nfa_do_multibyte:
|
|||
// NFA_END_COMPOSING is the ). Note that right now we are
|
||||
// building the postfix form, not the NFA itself;
|
||||
// a composing char could be: a, b, c, NFA_COMPOSING
|
||||
// where 'b' and 'c' are chars with codes > 256. */
|
||||
// where 'b' and 'c' are chars with codes > 256.
|
||||
while (true) {
|
||||
EMIT(c);
|
||||
if (i > 0) {
|
||||
|
|
|
@ -2460,7 +2460,7 @@ int current_search(int count, bool forward)
|
|||
// beginning of the file (cursor might be on the search match)
|
||||
// except when Visual mode is active, so that extending the visual
|
||||
// selection works.
|
||||
if (i == 1 && !result) { // not found, abort */
|
||||
if (i == 1 && !result) { // not found, abort
|
||||
curwin->w_cursor = orig_pos;
|
||||
if (VIsual_active) {
|
||||
VIsual = save_VIsual;
|
||||
|
@ -3677,9 +3677,8 @@ void find_pattern_in_path(char *ptr, Direction dir, size_t len, bool whole, bool
|
|||
true) & kEqualFiles) {
|
||||
if (type != CHECK_PATH
|
||||
&& action == ACTION_SHOW_ALL && files[i].matched) {
|
||||
msg_putchar('\n'); // cursor below last one */
|
||||
if (!got_int) { // don't display if 'q' typed at "--more--"
|
||||
// message
|
||||
msg_putchar('\n'); // cursor below last one
|
||||
if (!got_int) { // don't display if 'q' typed at "--more--" message
|
||||
msg_home_replace_hl(new_fname);
|
||||
msg_puts(_(" (includes previously listed match)"));
|
||||
prev_fname = NULL;
|
||||
|
|
Loading…
Reference in New Issue