From 027c0c81f3b54ad77d18240d0b967fb93d321d9b Mon Sep 17 00:00:00 2001 From: Vladan Popovic Date: Sun, 25 Feb 2024 22:42:26 +0100 Subject: [PATCH] remove omnifunc config, sort lsp servers by name --- lua/lsp.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lua/lsp.lua b/lua/lsp.lua index eef7984..e2301ca 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -1,8 +1,6 @@ local on_attach = function(client, bufnr) local utils = require('utils') - utils.opt("o", "omnifunc", "v:lua.vim.lsp.omnifunc") - -- Mappings. utils.map("n", "K", "lua vim.lsp.buf.hover()") utils.map("n", "", "lua vim.lsp.buf.signature_help()") @@ -47,13 +45,14 @@ capabilities.textDocument.completion.completionItem.snippetSupport = true; -- LSPs local servers = { + "clangd", + "gleam", "lua_ls", "ocamllsp", - "vimls", - "clangd", - "rnix", "pyright", + "rnix", "ruff_lsp", + "vimls", } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup {capabilities = capabilities, on_attach = on_attach}