diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-22 18:31:53 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-22 18:31:53 +0300 |
| commit | 566823e9b278612a34b5d594dbc6a4fa6673e6fe (patch) | |
| tree | ba99c24781c6b6aa12c94f969a56ec6e8a5a09f8 /.config/nvim | |
| parent | 565e57c0155e31235eb3d2ef0a83fe36d058530a (diff) | |
chore(neovim): configured luals
Diffstat (limited to '.config/nvim')
| -rw-r--r-- | .config/nvim/lua/custom/configs/language-servers.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/.config/nvim/lua/custom/configs/language-servers.lua b/.config/nvim/lua/custom/configs/language-servers.lua index 78dd6e5..4fd3fff 100644 --- a/.config/nvim/lua/custom/configs/language-servers.lua +++ b/.config/nvim/lua/custom/configs/language-servers.lua @@ -1,7 +1,19 @@ -- NOTE: A list of language servers (and potentially their config) -- Accepts either true to enable, false to disable or a table with settings return { - lua_ls = true, -- lua + lua_ls = { + settings = { + diagnostics = { + globals = { 'vim' }, + }, + workspace = { + library = { + [vim.fn.expand('$VIMRUNTIME/lua')] = true, + [vim.fn.stdpath('config') .. '/lua'] = true, + }, + }, + }, + }, -- lua clangd = true, -- C/C++ gradle_ls = true, -- java package manager jdtls = true, -- java eclipse lsp |
