1
0

fix: move lua enviroment config

This commit is contained in:
Rokas Puzonas 2021-10-31 18:33:17 +02:00
parent 2657cbbf33
commit 91d973e6b4
3 changed files with 25 additions and 21 deletions

5
.luarc.json Normal file
View File

@ -0,0 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"Lua.runtime.version": "LuaJIT",
"Lua.diagnostics.globals": ["vim", "packer_plugins"]
}

View File

@ -3,7 +3,6 @@
## Requirements ## Requirements
* ripgrep - for telescope * ripgrep - for telescope
* [A patched font](https://www.nerdfonts.com/) - for dev icons * [A patched font](https://www.nerdfonts.com/) - for icons
* [Sumenko language server](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(Standalone))

View File

@ -5,25 +5,25 @@ M.flags = { debounce_text_changes = 150 }
local general_settings = { } local general_settings = { }
M.server_settings = { M.server_settings = {
sumneko_lua = { -- sumneko_lua = {
Lua = { -- Lua = {
runtime = { -- runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim) -- -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = 'LuaJIT', -- version = 'LuaJIT',
-- Setup your lua path -- -- Setup your lua path
path = vim.split(package.path, ';') -- path = vim.split(package.path, ';')
}, -- },
diagnostics = { -- diagnostics = {
-- Get the language server to recognize the `vim` global -- -- Get the language server to recognize the `vim` global
globals = {'vim', 'packer_plugins'} -- globals = {'vim', 'packer_plugins'}
}, -- },
workspace = { -- workspace = {
-- Make the server aware of Neovim runtime files -- -- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true) -- library = vim.api.nvim_get_runtime_file("", true)
}, -- },
telemetry = { enable = false } -- telemetry = { enable = false }
} -- }
} -- }
} }
-- Apply general settings for each server -- Apply general settings for each server