Questions tagged [lua]

Question about the Lua binding in Neovim

Neovim support binding with Lua. It allow to configure Neovim or to write functions or plugin to add functionalities to Neovim

169 questions
1
vote
2 answers

Unable to turn off syntax highlighting with lua script in neovim

running newvim 0.6.1. Totally clean install, no plugins. In init.lua: vim.opt.syntax = "off" Also tried "false" and "disabled." Didn't work. Also tried vim.g, vim.o, vim.bo. Didn't work. Syntax highlighting still shows up. In init.vim: syntax off No…
StevieD
  • 1,492
  • 1
  • 16
  • 24
1
vote
0 answers

How to run command asynchronously whith :lua command?

When using vim8.1, it does not provide vim.fn and vim.call function, so we can not use vim.fn.job_start. then how can I run command asynchronously in lua?
Eric Wong
  • 520
  • 2
  • 13
0
votes
0 answers

Creating a faster way to -> ->

I'm using lazyvim with clangd extra installed, and when I have an error / diagnostic that needs handling I do the following routine: ]d / ]e (go to next diagnostic / error) ca (i.e. space bar) (code action - suggest a fix) enter (accpet…
CIsForCookies
  • 283
  • 2
  • 9
0
votes
0 answers

triple quotation marks

How does noremap :w :execute 'SlimeSend1 include("'.expand('%:p').'")' translate to lua? Here, triple quotation marks seem to be necessary.