remove omnifunc config, sort lsp servers by name

This commit is contained in:
Vladan Popovic 2024-02-25 22:42:26 +01:00
parent 3e2dd9c332
commit 027c0c81f3

View file

@ -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", "<Cmd>lua vim.lsp.buf.hover()<CR>")
utils.map("n", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>")
@ -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}