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
* ripgrep - for telescope
* [A patched font](https://www.nerdfonts.com/) - for dev icons
* [Sumenko language server](https://github.com/sumneko/lua-language-server/wiki/Build-and-Run-(Standalone))
* [A patched font](https://www.nerdfonts.com/) - for icons

View File

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