local lsp_installer = require("nvim-lsp-installer") lsp_installer.on_server_ready(function(server) local opts = { -- Coq configuration, ensure coq actual has capabilties shown capabilities = require("coq").lsp_ensure_capabilities(vim.lsp.protocol.make_client_capabilities()), } -- In the secnario we're using rust it makes more sense to use rust-tools -- see: https://github.com/williamboman/nvim-lsp-installer/wiki/Rust if server.name == "rust_analyzer" then require("rust-tools").setup{ server = vim.tbl_deep_extend("force", server:get_default_options(), opts), } server:attach_buffers() else -- I use ansible a lot, define exceptions for servers that can use -- server:setup & vim.cmd at the bottom here if server.name == "ansiblels" then opts.settings = { ansible = { ansible = { path = "ansible" }, ansibleLint = { enabled = true, path = "ansible-lint" }, python = { interpreterPath = "python3" } } } end server:setup(opts) vim.cmd [[ do User LspAttachBuffers ]] end end)