Skip to main content

Command Palette

Search for a command to run...

How to write Lua Script in Neovim init.vim

Updated
1 min read
C

I'm an engineering senior at National Institute of Technology, Srinagar, India. I'm a developer, fitness aficionado, productivity enthusiast and a fellow nerd.

lua in init.vim

To include lua script in neovim's init.vim, enclose it in lua << EOF & EOF

For example;

lua << EOF
    vim.opt.termguicolors = true

    vim.opt.colorcolumn = "80"
EOF