forked from pool/neovim
Accepting request 935013 from editors
- Update to 0.6.0 (details on - Diagnostics and LSP changes Initially, diagnostic module is part of vim.lsp module. In order to support external plugins such as null-ls.nvim, the nvim team has refactor the diagnostic module to its module vim.diagnostic. So we need to change our config accordingly. vim.lsp.diagnostic.show_line_diagnostics() has been changed to vim.diagnostic.open_float(). Previously, there is no easy to show diagnostic source unless with some hack, you can now show source in diagnostics in open_float() easily: vim.diagnostic.open_float(nil, { source = 'always' }) vim.lsp.diagnostic.goto_prev() and vim.lsp.diagnostic.goto_next() has been renamed to vim.diagnostic.goto_prev() and vim.diagnostic.goto_next() respectively. vim.lsp.diagnostic.set_loclist() and vim.lsp.diagnostic.set_qflist() has been renamed to vim.diagnostic.setloclist() and vim.diagnostic.setqflist() instead. Diagnostics signs has been renamed, for example (old –> new): LspDiagnosticsSignError –> DiagnosticSignError (Lsp is removed, Diagnostics is changed to singular from Diagnostic) LspDiagnosticsSignWarning –> DiagnosticSignWarn LspDiagnosticsSignInformation –> DiagnosticSignInfo LspDiagnosticsSignHint –> DiagnosticSignHint Also, related highlight has been renamed too: DiagnosticsDefaultError –> DiagnosticSignError OBS-URL: https://build.opensuse.org/request/show/935013 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/neovim?expand=0&rev=40
This commit is contained in:
commit
65d4c6a097
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:aa449795e5cc69bdd2eeed7095f20b9c086c6ecfcde0ab62ab97a9d04243ec84
|
|
||||||
size 10349190
|
|
3
neovim-0.6.0.tar.gz
Normal file
3
neovim-0.6.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2cfd600cfa5bb57564cc22ffbbbcb2c91531053fc3de992df33656614384fa4c
|
||||||
|
size 10592213
|
@ -1,3 +1,73 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 30 18:22:24 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.6.0 (details on
|
||||||
|
- Diagnostics and LSP changes
|
||||||
|
Initially, diagnostic module is part of vim.lsp module. In
|
||||||
|
order to support external plugins such as null-ls.nvim, the
|
||||||
|
nvim team has refactor the diagnostic module to its module
|
||||||
|
vim.diagnostic. So we need to change our config accordingly.
|
||||||
|
|
||||||
|
vim.lsp.diagnostic.show_line_diagnostics() has been changed
|
||||||
|
to vim.diagnostic.open_float(). Previously, there is no easy
|
||||||
|
to show diagnostic source unless with some hack, you can now
|
||||||
|
show source in diagnostics in open_float() easily:
|
||||||
|
|
||||||
|
vim.diagnostic.open_float(nil, {
|
||||||
|
source = 'always'
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.lsp.diagnostic.goto_prev() and
|
||||||
|
vim.lsp.diagnostic.goto_next() has been renamed to
|
||||||
|
vim.diagnostic.goto_prev() and vim.diagnostic.goto_next()
|
||||||
|
respectively.
|
||||||
|
|
||||||
|
vim.lsp.diagnostic.set_loclist() and
|
||||||
|
vim.lsp.diagnostic.set_qflist() has been renamed to
|
||||||
|
vim.diagnostic.setloclist() and vim.diagnostic.setqflist()
|
||||||
|
instead.
|
||||||
|
|
||||||
|
Diagnostics signs has been renamed, for example (old –> new):
|
||||||
|
LspDiagnosticsSignError –> DiagnosticSignError (Lsp is
|
||||||
|
removed, Diagnostics is changed to singular from
|
||||||
|
Diagnostic)
|
||||||
|
LspDiagnosticsSignWarning –> DiagnosticSignWarn
|
||||||
|
LspDiagnosticsSignInformation –> DiagnosticSignInfo
|
||||||
|
LspDiagnosticsSignHint –> DiagnosticSignHint
|
||||||
|
|
||||||
|
Also, related highlight has been renamed too:
|
||||||
|
DiagnosticsDefaultError –> DiagnosticSignError
|
||||||
|
DiagnosticsDefaultWarning –> DiagnosticSignWarn
|
||||||
|
DiagnosticsDefaultInformation –> DiagnosticSignInfo
|
||||||
|
DiagnosticsDefaultHint –> DiagnosticSignHint
|
||||||
|
|
||||||
|
Now, we can use the following lua snippet to change diagnostic signs:
|
||||||
|
|
||||||
|
vim.fn.sign_define("DiagnosticSignError",
|
||||||
|
{ text = "✗", texthl = "DiagnosticSignError" })
|
||||||
|
vim.fn.sign_define("DiagnosticSignWarn",
|
||||||
|
{ text = "!", texthl = "DiagnosticSignWarn" })
|
||||||
|
vim.fn.sign_define("DiagnosticSignInformation",
|
||||||
|
{ text = "", texthl = "DiagnosticSignInfo" })
|
||||||
|
vim.fn.sign_define("DiagnosticSignHint",
|
||||||
|
{ text = "", texthl = "DiagnosticSignHint" })
|
||||||
|
|
||||||
|
- Changes to the default
|
||||||
|
There are also changes to options and mappings that you might
|
||||||
|
be interested.
|
||||||
|
|
||||||
|
Option default value changes:
|
||||||
|
- backupdir can now be created automatically and double
|
||||||
|
backslash is used, see this commit.
|
||||||
|
- option inccommand is set to nosplit
|
||||||
|
- set nojoinspaces by default
|
||||||
|
|
||||||
|
Mapping changes:
|
||||||
|
- <C-L> now defaults to nohlsearch and diffupdate
|
||||||
|
- In normal mode, Y is mapped to y$, see this commit, no
|
||||||
|
need for nnoremap Y y$ anymore.
|
||||||
|
- Remove upstreamed patch vim7188-fix-netrw-command.patch.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 17 11:47:44 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
Wed Nov 17 11:47:44 UTC 2021 - Callum Farmer <gmbr3@opensuse.org>
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
%define luaver 5.1
|
%define luaver 5.1
|
||||||
%define luaver_nopoint 51
|
%define luaver_nopoint 51
|
||||||
Name: neovim
|
Name: neovim
|
||||||
Version: 0.5.1
|
Version: 0.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Vim-fork focused on extensibility and agility
|
Summary: Vim-fork focused on extensibility and agility
|
||||||
License: Apache-2.0 AND Vim
|
License: Apache-2.0 AND Vim
|
||||||
@ -41,9 +41,6 @@ Source99: neovim-rpmlintrc
|
|||||||
Patch0: neovim.patch
|
Patch0: neovim.patch
|
||||||
# PATCH-FIX-OPENSUSE neovim-0.1.7-bitop.patch mcepl@cepl.eu build with old Lua with external bit module
|
# PATCH-FIX-OPENSUSE neovim-0.1.7-bitop.patch mcepl@cepl.eu build with old Lua with external bit module
|
||||||
Patch1: neovim-0.1.7-bitop.patch
|
Patch1: neovim-0.1.7-bitop.patch
|
||||||
# PATCH-FIX-UPSTREAM vim7188-fix-netrw-command.patch gh#vim/vim#4738 mcepl@suse.com
|
|
||||||
# make gx in netrw working again
|
|
||||||
Patch2: vim7188-fix-netrw-command.patch
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -82,9 +79,9 @@ BuildRequires: lua51-devel
|
|||||||
# luajit implements version 5.1 of the lua language spec, so it needs the
|
# luajit implements version 5.1 of the lua language spec, so it needs the
|
||||||
# compat versions of libs.
|
# compat versions of libs.
|
||||||
BuildRequires: lua51-LPeg
|
BuildRequires: lua51-LPeg
|
||||||
|
BuildRequires: libluv-devel >= %{luv_min_ver}
|
||||||
BuildRequires: lua51-bit32
|
BuildRequires: lua51-bit32
|
||||||
BuildRequires: lua51-luarocks
|
BuildRequires: lua51-luarocks
|
||||||
BuildRequires: libluv-devel >= %{luv_min_ver}
|
|
||||||
BuildRequires: lua51-luv >= %{luv_min_ver}
|
BuildRequires: lua51-luv >= %{luv_min_ver}
|
||||||
BuildRequires: lua51-mpack
|
BuildRequires: lua51-mpack
|
||||||
Requires: lua51-bit32
|
Requires: lua51-bit32
|
||||||
@ -115,7 +112,6 @@ parts of Vim, without compromise, and more.
|
|||||||
# %%if %%{without luajit}
|
# %%if %%{without luajit}
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
# %%endif
|
# %%endif
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
# Remove __DATE__ and __TIME__.
|
# Remove __DATE__ and __TIME__.
|
||||||
BUILD_TIME=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%{H}:%{M}')
|
BUILD_TIME=$(LC_ALL=C date -ur %{_sourcedir}/%{name}.changes +'%{H}:%{M}')
|
||||||
|
@ -1,91 +0,0 @@
|
|||||||
From 91e876f6d13314a353d8b1ae4f3927f028b4b915 Mon Sep 17 00:00:00 2001
|
|
||||||
From: "K.Takata" <kentkt@csc.jp>
|
|
||||||
Date: Fri, 23 Oct 2020 08:13:18 +0900
|
|
||||||
Subject: [PATCH 1/2] netrw: Fix gx command
|
|
||||||
|
|
||||||
Fix #4738.
|
|
||||||
Since Netrw v165, the gx command had been broken at least on macOS and
|
|
||||||
MS-Windows. The platform-specific open commands support to handle a
|
|
||||||
remote URL directly, however, Netrw downloaded a file first.
|
|
||||||
|
|
||||||
Stop downloading a remote file when the viewer supports to handle a
|
|
||||||
remote URL.
|
|
||||||
---
|
|
||||||
runtime/autoload/netrw.vim | 16 +++++++++++-----
|
|
||||||
runtime/doc/pi_netrw.txt | 7 +++++++
|
|
||||||
2 files changed, 18 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
--- a/runtime/autoload/netrw.vim
|
|
||||||
+++ b/runtime/autoload/netrw.vim
|
|
||||||
@@ -5220,6 +5220,12 @@ fun! netrw#BrowseX(fname,remote)
|
|
||||||
endif
|
|
||||||
" call Decho("not a local file nor a webpage request",'~'.expand("<slnum>"))
|
|
||||||
|
|
||||||
+ if exists("g:netrw_browsex_viewer") && exists("g:netrw_browsex_support_remote") && !g:netrw_browsex_support_remote
|
|
||||||
+ let remote = a:remote
|
|
||||||
+ else
|
|
||||||
+ let remote = 0
|
|
||||||
+ endif
|
|
||||||
+
|
|
||||||
let ykeep = @@
|
|
||||||
let screenposn = winsaveview()
|
|
||||||
" call Decho("saving posn to screenposn<".string(screenposn).">",'~'.expand("<slnum>"))
|
|
||||||
@@ -5264,9 +5270,9 @@ fun! netrw#BrowseX(fname,remote)
|
|
||||||
endif
|
|
||||||
" call Decho("exten<".exten.">",'~'.expand("<slnum>"))
|
|
||||||
|
|
||||||
- if a:remote == 1
|
|
||||||
+ if remote == 1
|
|
||||||
" create a local copy
|
|
||||||
-" call Decho("remote: a:remote=".a:remote.": create a local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
|
||||||
+" call Decho("remote: remote=".remote.": create a local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
|
||||||
setl bh=delete
|
|
||||||
call netrw#NetRead(3,a:fname)
|
|
||||||
" attempt to rename tempfile
|
|
||||||
@@ -5288,7 +5294,7 @@ fun! netrw#BrowseX(fname,remote)
|
|
||||||
let fname= s:netrw_tmpfile
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
-" call Decho("local: a:remote=".a:remote.": handling local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
|
||||||
+" call Decho("local: remote=".remote.": handling local copy of <".a:fname.">",'~'.expand("<slnum>"))
|
|
||||||
let fname= a:fname
|
|
||||||
" special ~ handler for local
|
|
||||||
if fname =~ '^\~' && expand("$HOME") != ""
|
|
||||||
@@ -5431,12 +5437,12 @@ fun! netrw#BrowseX(fname,remote)
|
|
||||||
" return to prior buffer (directory listing)
|
|
||||||
" Feb 12, 2008: had to de-activiate removal of
|
|
||||||
" temporary file because it wasn't getting seen.
|
|
||||||
-" if a:remote == 1 && fname != a:fname
|
|
||||||
+" if remote == 1 && fname != a:fname
|
|
||||||
"" call Decho("deleting temporary file<".fname.">",'~'.expand("<slnum>"))
|
|
||||||
" call s:NetrwDelete(fname)
|
|
||||||
" endif
|
|
||||||
|
|
||||||
- if a:remote == 1
|
|
||||||
+ if remote == 1
|
|
||||||
setl bh=delete bt=nofile
|
|
||||||
if g:netrw_use_noswf
|
|
||||||
setl noswf
|
|
||||||
--- a/runtime/doc/pi_netrw.txt
|
|
||||||
+++ b/runtime/doc/pi_netrw.txt
|
|
||||||
@@ -1510,6 +1510,9 @@ Netrw determines which special handler b
|
|
||||||
If g:netrw_browsex_viewer == '-', then netrwFileHandlers#Invoke() will be
|
|
||||||
used instead (see |netrw_filehandler|).
|
|
||||||
|
|
||||||
+ If the viewer doesn't support handling a remote URL, set
|
|
||||||
+ |g:netrw_browsex_support_remote| to 0.
|
|
||||||
+
|
|
||||||
* for Windows 32 or 64, the URL and FileProtocolHandler dlls are used.
|
|
||||||
* for Gnome (with gnome-open): gnome-open is used.
|
|
||||||
* for KDE (with kfmclient) : kfmclient is used
|
|
||||||
@@ -2607,6 +2610,10 @@ your browsing preferences. (see also: |
|
|
||||||
a script/function to handle the given
|
|
||||||
extension. (see |netrw_filehandler|).
|
|
||||||
|
|
||||||
+ *g:netrw_browsex_support_remote*
|
|
||||||
+ specify if the specified viewer supports a
|
|
||||||
+ remote URL. (see |netrw-handler|).
|
|
||||||
+
|
|
||||||
*g:netrw_chgperm* Unix/Linux: "chmod PERM FILENAME"
|
|
||||||
Windows: "cacls FILENAME /e /p PERM"
|
|
||||||
Used to change access permission for a file.
|
|
Loading…
Reference in New Issue
Block a user