WIP: Switch to NixOS #5

Draft
FunctionalHacker wants to merge 1349 commits from nix into main
Showing only changes of commit b3f20969a7 - Show all commits

View file

@ -44,6 +44,10 @@ local buf_map_keys = function(server_name, bufnr)
keymapOpts)
end
-- Add additional capabilities supported by nvim-cmp
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)
-- Register a handler that will be called for all installed servers.
-- Alternatively, you may also register handlers on specific server instances instead (see example below).
lsp_installer.on_server_ready(function(server)
@ -75,5 +79,6 @@ lsp_installer.on_server_ready(function(server)
end
opts.on_attach = buf_map_keys
opts.capabilities = capabilities
server:setup(opts)
end)