summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/configs
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/custom/configs')
-rw-r--r--.config/nvim/lua/custom/configs/language-servers.lua14
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