remove omnifunc config, sort lsp servers by name
This commit is contained in:
parent
3e2dd9c332
commit
027c0c81f3
1 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
local utils = require('utils')
|
local utils = require('utils')
|
||||||
|
|
||||||
utils.opt("o", "omnifunc", "v:lua.vim.lsp.omnifunc")
|
|
||||||
|
|
||||||
-- Mappings.
|
-- Mappings.
|
||||||
utils.map("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>")
|
utils.map("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>")
|
||||||
utils.map("n", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<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
|
-- LSPs
|
||||||
local servers = {
|
local servers = {
|
||||||
|
"clangd",
|
||||||
|
"gleam",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"ocamllsp",
|
"ocamllsp",
|
||||||
"vimls",
|
|
||||||
"clangd",
|
|
||||||
"rnix",
|
|
||||||
"pyright",
|
"pyright",
|
||||||
|
"rnix",
|
||||||
"ruff_lsp",
|
"ruff_lsp",
|
||||||
|
"vimls",
|
||||||
}
|
}
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
nvim_lsp[lsp].setup {capabilities = capabilities, on_attach = on_attach}
|
nvim_lsp[lsp].setup {capabilities = capabilities, on_attach = on_attach}
|
||||||
|
|
Reference in a new issue