diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2023-12-04 13:31:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 13:31:57 -0800 |
| commit | 45fe4d11add933df76a2ea4bf52ce8904f4a778b (patch) | |
| tree | aa1066146b29f95f43153fe3948b6c165a156a15 /src/nvim/generators/preload.lua | |
| parent | 517f0cc634b985057da5b95cf4ad659ee456a77e (diff) | |
| download | rneovim-45fe4d11add933df76a2ea4bf52ce8904f4a778b.tar.gz rneovim-45fe4d11add933df76a2ea4bf52ce8904f4a778b.tar.bz2 rneovim-45fe4d11add933df76a2ea4bf52ce8904f4a778b.zip | |
build: enable lintlua for src/ dir #26395
Problem:
Not all Lua code is checked by stylua. Automating code-style is an
important mechanism for reducing time spent on accidental
(non-essential) complexity.
Solution:
- Enable lintlua for `src/` directory.
followup to 517f0cc634b985057da5b95cf4ad659ee456a77e
Diffstat (limited to 'src/nvim/generators/preload.lua')
| -rw-r--r-- | src/nvim/generators/preload.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/generators/preload.lua b/src/nvim/generators/preload.lua index 4b7fde2c39..721d2880b8 100644 --- a/src/nvim/generators/preload.lua +++ b/src/nvim/generators/preload.lua @@ -1,7 +1,7 @@ local srcdir = table.remove(arg, 1) local nlualib = table.remove(arg, 1) -package.path = srcdir .. '/src/nvim/?.lua;' ..srcdir .. '/runtime/lua/?.lua;' .. package.path -_G.vim = require'vim.shared' +package.path = srcdir .. '/src/nvim/?.lua;' .. srcdir .. '/runtime/lua/?.lua;' .. package.path +_G.vim = require 'vim.shared' _G.vim.inspect = require 'vim.inspect' package.cpath = package.cpath .. ';' .. nlualib require 'nlua0' |