forked from rafi/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsumneko_lua.lua
More file actions
47 lines (43 loc) · 938 Bytes
/
sumneko_lua.lua
File metadata and controls
47 lines (43 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
-- sumneko-lua-language-server settings
--
-- local plugins_path = vim.fn.stdpath('data') .. '/dein/repos/github.com'
local settings = {
Lua = {
runtime = {
version = 'LuaJIT',
path = vim.fn.split(package.path, ';'),
},
diagnostics = {
enable = true,
globals = {
'vim',
'use',
'describe',
'it',
'assert',
'before_each',
'after_each',
},
},
telemetry = {
enable = false,
},
-- workspace = {
-- -- Make the server aware of Neovim runtime files
-- -- library = vim.api.nvim_get_runtime_file('', true),
-- library = {
-- [vim.fn.stdpath('config') .. '/lua'] = true,
-- [vim.fn.expand('$VIMRUNTIME/lua')] = true,
-- [vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
-- [plugins_path .. '/nvim-lua/plenary.nvim/lua'] = true,
-- [plugins_path] = true,
-- },
-- },
},
}
local function config(_)
return settings
end
return {
config = config,
}