aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-04-23 15:22:55 +0200
committerGitHub <noreply@github.com>2023-04-23 15:22:55 +0200
commite3f36377c156749bbdafc46d8a8cd017f378b4b5 (patch)
treeacaaab31bc9e0bdaddc5765aa0b7d1acd11fbecf /runtime/ftplugin
parentf17bb4f41102ecec7989bc4c14c626dc595e2f0b (diff)
downloadrneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.gz
rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.bz2
rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.zip
vim-patch:71badf9547e8 (#23285)
Update runtime files https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r--runtime/ftplugin/livebook.vim9
-rw-r--r--runtime/ftplugin/lua.vim5
-rw-r--r--runtime/ftplugin/netrc.vim3
-rw-r--r--runtime/ftplugin/rmd.vim6
-rw-r--r--runtime/ftplugin/rnoweb.vim8
-rw-r--r--runtime/ftplugin/rrst.vim4
6 files changed, 23 insertions, 12 deletions
diff --git a/runtime/ftplugin/livebook.vim b/runtime/ftplugin/livebook.vim
new file mode 100644
index 0000000000..c97d210412
--- /dev/null
+++ b/runtime/ftplugin/livebook.vim
@@ -0,0 +1,9 @@
+" Placeholder livebook filetype plugin file.
+" This simply uses the markdown filetype plugin.
+
+" Only load this plugin when no other was loaded.
+if exists("b:did_ftplugin")
+ finish
+endif
+
+runtime! ftplugin/markdown.vim ftplugin/markdown_*.vim ftplugin/markdown/*.vim
diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim
index 88b1fc9d44..3529e1e3fd 100644
--- a/runtime/ftplugin/lua.vim
+++ b/runtime/ftplugin/lua.vim
@@ -4,7 +4,8 @@
" Previous Maintainer: Max Ischenko <mfi@ukr.net>
" Contributor: Dorai Sitaram <ds26@gte.com>
" C.D. MacEachern <craig.daniel.maceachern@gmail.com>
-" Last Change: 2022 Nov 19
+" Tyler Miller <tmillr@proton.me>
+" Last Change: 2023 Mar 24
if exists("b:did_ftplugin")
finish
@@ -14,7 +15,7 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
-setlocal comments=:--
+setlocal comments=:---,:--
setlocal commentstring=--\ %s
setlocal formatoptions-=t formatoptions+=croql
diff --git a/runtime/ftplugin/netrc.vim b/runtime/ftplugin/netrc.vim
index 02ee327295..5f40bec96e 100644
--- a/runtime/ftplugin/netrc.vim
+++ b/runtime/ftplugin/netrc.vim
@@ -2,6 +2,7 @@
" Language: netrc(5) configuration file
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2008-07-09
+" Last Change: 2023 Feb 27 by Keith Smiley
if exists("b:did_ftplugin")
finish
@@ -13,7 +14,7 @@ set cpo&vim
let b:undo_ftplugin = "setl com< cms< fo<"
-setlocal comments= commentstring= formatoptions-=tcroq formatoptions+=l
+setlocal comments=b:# commentstring=#\ %s formatoptions-=tcroq formatoptions+=l
let &cpo = s:cpo_save
unlet s:cpo_save
diff --git a/runtime/ftplugin/rmd.vim b/runtime/ftplugin/rmd.vim
index 355b88f04a..be6ab7335b 100644
--- a/runtime/ftplugin/rmd.vim
+++ b/runtime/ftplugin/rmd.vim
@@ -2,7 +2,7 @@
" Language: R Markdown file
" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
-" Last Change: Sun Apr 24, 2022 09:12AM
+" Last Change: Mon Feb 27, 2023 07:15PM
" Original work by Alex Zvoleff (adjusted from R help for rmd by Michel Kuhlmann)
" Only do this when not yet done for this buffer
@@ -23,7 +23,7 @@ setlocal iskeyword=@,48-57,_,.
let s:cpo_save = &cpo
set cpo&vim
-function! FormatRmd()
+function FormatRmd()
if search("^[ \t]*```[ ]*{r", "bncW") > search("^[ \t]*```$", "bncW")
setlocal comments=:#',:###,:##,:#
else
@@ -32,7 +32,7 @@ function! FormatRmd()
return 1
endfunction
-function! SetRmdCommentStr()
+function SetRmdCommentStr()
if (search("^[ \t]*```[ ]*{r", "bncW") > search("^[ \t]*```$", "bncW")) || ((search('^---$', 'Wn') || search('^\.\.\.$', 'Wn')) && search('^---$', 'bnW'))
set commentstring=#\ %s
else
diff --git a/runtime/ftplugin/rnoweb.vim b/runtime/ftplugin/rnoweb.vim
index cf1c0922c0..26c1ab4e3f 100644
--- a/runtime/ftplugin/rnoweb.vim
+++ b/runtime/ftplugin/rnoweb.vim
@@ -2,7 +2,7 @@
" Language: Rnoweb
" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
-" Last Change: Sun Apr 24, 2022 09:13AM
+" Last Change: Mon Feb 27, 2023 07:16PM
" Only do this when not yet done for this buffer
if exists("b:did_ftplugin")
@@ -29,7 +29,7 @@ if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
\ "All Files (*.*)\t*.*\n"
endif
-function! SetRnwCommentStr()
+function SetRnwCommentStr()
if (search("^\s*<<.*>>=", "bncW") > search("^@", "bncW"))
set commentstring=#\ %s
else
@@ -47,9 +47,9 @@ if !exists("g:rnw_dynamic_comments") || (exists("g:rnw_dynamic_comments") && g:r
endif
if exists('b:undo_ftplugin')
- let b:undo_ftplugin .= " | setl isk< sua< com< | unlet! b:browsefilter"
+ let b:undo_ftplugin .= " | setl isk< sua< com< cms< | unlet! b:browsefilter"
else
- let b:undo_ftplugin = "setl isk< sua< com< | unlet! b:browsefilter"
+ let b:undo_ftplugin = "setl isk< sua< com< cms< | unlet! b:browsefilter"
endif
let &cpo = s:cpo_save
diff --git a/runtime/ftplugin/rrst.vim b/runtime/ftplugin/rrst.vim
index 19c67c4cc2..d9df5e587f 100644
--- a/runtime/ftplugin/rrst.vim
+++ b/runtime/ftplugin/rrst.vim
@@ -2,7 +2,7 @@
" Language: reStructuredText documentation format with R code
" Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com>
" Homepage: https://github.com/jalvesaq/R-Vim-runtime
-" Last Change: Sun Apr 24, 2022 09:13AM
+" Last Change: Mon Feb 27, 2023 07:16PM
" Original work by Alex Zvoleff
" Only do this when not yet done for this buffer
@@ -22,7 +22,7 @@ setlocal formatoptions+=tcqln
setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*[-*+]\\s\\+
setlocal iskeyword=@,48-57,_,.
-function! FormatRrst()
+function FormatRrst()
if search('^\.\. {r', "bncW") > search('^\.\. \.\.$', "bncW")
setlocal comments=:#',:###,:##,:#
else