···1515 vim.lsp.enable(server)
1616 end
1717 end
1818+ local config = vim.lsp.config[server]
1919+2020+ if config and config.default_config then
2121+ local cmd = config.default_config.cmd
2222+ if cmd and cmd[1] and vim.fn.executable(cmd[1]) == 1 then
2323+ vim.lsp.enable(server)
2424+ end
2525+ end
1826end
19272028vim.api.nvim_create_autocmd("LspAttach", {
···2836 end
2937 end,
3038})
3939+vim.api.nvim_create_autocmd("LspAttach", {
4040+ callback = function(args)
4141+ local client = vim.lsp.get_client_by_id(args.data.client_id)
4242+ if client and client.supports_method("textDocument/completion") then
4343+ vim.lsp.completion.enable(true, client.id, args.buf)
4444+ end
4545+ end,
4646+})
4747+
+1
home/desktop.nix
···3434 home.packages = with pkgs; [
3535 # GUI Apps
3636 vivaldi
3737+ crosspipe
3738 # I make a lot of things with Inkscape actually!
3839 inkscape
3940 ];