fix: move lua enviroment config
This commit is contained in:
parent
2657cbbf33
commit
91d973e6b4
5
.luarc.json
Normal file
5
.luarc.json
Normal 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"]
|
||||
}
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user