summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/getchoo/lsp/config/lsp_config.lua')
-rw-r--r--.config/nvim/lua/getchoo/lsp/config/lsp_config.lua38
1 files changed, 19 insertions, 19 deletions
diff --git a/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua b/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua
index 6b13d19..4df3fe0 100644
--- a/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua
+++ b/.config/nvim/lua/getchoo/lsp/config/lsp_config.lua
@@ -4,35 +4,35 @@ local sources = require("getchoo.lsp.config.sources")
local M = {}
local on_attach = function(client, bufnr)
- cmp.on_attach(client, bufnr)
+ cmp.on_attach(client, bufnr)
end
local all_config = {
- capabilities = cmp.capabilities,
- on_attach = on_attach,
+ capabilities = cmp.capabilities,
+ on_attach = on_attach,
}
local servers = {}
for _, server in ipairs(sources.lsp_servers) do
- servers[server] = all_config
+ servers[server] = all_config
end
servers["sumneko_lua"] = {
- capabilities = cmp.capabilities,
- on_attach = on_attach,
- settings = {
- Lua = {
- runtime = {
- version = "LuaJIT",
- },
- diagnostics = {
- globals = { "vim" },
- },
- workspace = {
- library = vim.api.nvim_get_runtime_file("", true),
- },
- },
- },
+ capabilities = cmp.capabilities,
+ on_attach = on_attach,
+ settings = {
+ Lua = {
+ runtime = {
+ version = "LuaJIT",
+ },
+ diagnostics = {
+ globals = { "vim" },
+ },
+ workspace = {
+ library = vim.api.nvim_get_runtime_file("", true),
+ },
+ },
+ },
}
M.servers = servers