Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Question about the Lua binding in Neovim
0
votes
Accepted
Conversion in Lua: how to tabdo all the visible buffers without changing view of the current...
Lua format
function TabLcd()
local current_tab = vim.fn.tabpagenr()
vim.cmd("tabdo <commands>")
vim.cmd("execute 'tabnext' " .. current_tab)
end
vim.api.nvim_set_keymap('n', '<leader>lcd', … ':lua TabLcd()<CR>', { noremap = true, silent = true })
function TabLcd() defines a Lua function named TabLcd. …
1
vote
2
answers
111
views
Conversion in Lua: how to tabdo all the visible buffers without changing view of the current...
I want to implement it in Lua.
Can anyone help me convert this? …
0
votes
1
answer
30
views
Conversion in Lua: How to display multiple changed files on disk in Vim?
,
I want to implement this feature in Lua. Some help would be appreciated.
set autoread
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI *
\ if mode() !~ '\v(c|r.?|! …
0
votes
1
answer
252
views
I need help updating config code from vimscript to lua
Now, with Lua released, I am unable to convert it.
And it's down to you folks whether you can help me. You are my last hope.
Yes, I've read the documentation and whatnot. Still, I don't get it. … lua vim.highlight.on_yank {higroup="IncSearch", timeout=300}
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! …
2
votes
1
answer
468
views
Neovim: Converting Vimscript Terminal Functions to Lua
expand('%:r')))
autocmd FileType cpp nnoremap <F12> <Esc>:w <bar> CompileAndRun<CR>
let g:split_term_style = 'horizontal'
let g:split_term_resize_cmd = 'resize 30'
set splitbelow
This is my first try at Lua … E5112: Error while creating lua chunk: /home/killerbee/.config/nvim/init.lua:64:
')' expected near ''horizontal'' …
1
vote
1
answer
826
views
Conversion in Lua: Detect OS in Vimscript
win32") || has("win16")
let g:os = "Windows"
else
let g:os = substitute(system('uname'), '\n', '', '')
endif
endif
Is there a more efficient or elegant way to achieve this in Lua …