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
|
## 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))
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user